/*
 Navicat Premium Data Transfer

 Source Server         : lw
 Source Server Type    : MySQL
 Source Server Version : 50718
 Source Host           : cdb-gvebaa90.bj.tencentcdb.com:10179
 Source Schema         : lw-2.0

 Target Server Type    : MySQL
 Target Server Version : 50718
 File Encoding         : 65001

 Date: 17/01/2022 13:22:15
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for QRTZ_BLOB_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
  `sched_name` varchar(120) NOT NULL,
  `trigger_name` varchar(200) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  `blob_data` blob,
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_BLOB_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_CALENDARS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
CREATE TABLE `QRTZ_CALENDARS` (
  `sched_name` varchar(120) NOT NULL,
  `calendar_name` varchar(200) NOT NULL,
  `calendar` blob NOT NULL,
  PRIMARY KEY (`sched_name`,`calendar_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_CALENDARS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_CRON_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
CREATE TABLE `QRTZ_CRON_TRIGGERS` (
  `sched_name` varchar(120) NOT NULL,
  `trigger_name` varchar(200) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  `cron_expression` varchar(200) NOT NULL,
  `time_zone_id` varchar(80) DEFAULT NULL,
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_CRON_TRIGGERS
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME10', 'SYSTEM', '0 0 23 * * ? ', 'Asia/Shanghai');
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME11', 'SYSTEM', '0 10 * * * ?', 'Asia/Shanghai');
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'SYSTEM', '0 */1 * * * ?', 'Asia/Shanghai');
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME6', 'SYSTEM', '0 */1 * * * ?', 'Asia/Shanghai');
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME7', 'SYSTEM', '0 0 2 * * ?', 'Asia/Shanghai');
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME8', 'SYSTEM', '0 0 2 * * ? ', 'Asia/Shanghai');
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME9', 'SYSTEM', '0 58 23 * * ? ', 'Asia/Shanghai');
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_FIRED_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
  `sched_name` varchar(120) NOT NULL,
  `entry_id` varchar(95) NOT NULL,
  `trigger_name` varchar(200) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  `instance_name` varchar(200) NOT NULL,
  `fired_time` bigint(13) NOT NULL,
  `sched_time` bigint(13) NOT NULL,
  `priority` int(11) NOT NULL,
  `state` varchar(16) NOT NULL,
  `job_name` varchar(200) DEFAULT NULL,
  `job_group` varchar(200) DEFAULT NULL,
  `is_nonconcurrent` varchar(1) DEFAULT NULL,
  `requests_recovery` varchar(1) DEFAULT NULL,
  PRIMARY KEY (`sched_name`,`entry_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_FIRED_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_JOB_DETAILS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
CREATE TABLE `QRTZ_JOB_DETAILS` (
  `sched_name` varchar(120) NOT NULL,
  `job_name` varchar(200) NOT NULL,
  `job_group` varchar(200) NOT NULL,
  `description` varchar(250) DEFAULT NULL,
  `job_class_name` varchar(250) NOT NULL,
  `is_durable` varchar(1) NOT NULL,
  `is_nonconcurrent` varchar(1) NOT NULL,
  `is_update_data` varchar(1) NOT NULL,
  `requests_recovery` varchar(1) NOT NULL,
  `job_data` blob,
  PRIMARY KEY (`sched_name`,`job_name`,`job_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_JOB_DETAILS
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME10', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000178C4FC99807870707400007070707400013174000D302030203233202A202A203F207400345461736B46697373696F6E5374617475735461736B2E7461736B46697373696F6E4578706972656453746174757348616E646C6574000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000A74001BE4BBBBE58AA1E5AE9DE8BF87E69C9FE4BBBBE58AA1E689ABE68F8F74000131740001307800);
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME11', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000A61646D696E5F70726F647372000E6A6176612E7574696C2E44617465686A81014B597419030000787077080000017D95A79E507870707400007070707400013174000C30203130202A202A202A203F74002777655172436F64655570646174655461736B2E7172436F64655570646174655461736B2827272974000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000B74001EE6B4BBE7A081E4BDBFE794A8E88C83E59BB4E4BFAEE694B9E4BBBBE58AA174000131740001307800);
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001765A4EBBB07870707400007070707400013174000D30202A2F31202A202A202A203F740023636F6E766572736174696F6E417263686976655461736B2E46696E616E63655461736B74000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000474000CE4BC9AE8AF9DE5AD98E6A1A374000133740001317800);
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME6', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B597419030000787077080000017789B16B907870707400007070707400013174000D30202A2F31202A202A202A203F74001C67726F75704D6573736167655461736B2E6D6573736167655461736B74000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000006740012E5AE9AE697B6E6B688E681AFE7BEA4E58F9174000131740001317800);
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME7', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000177D85F96187870707400007070707400013174000B3020302032202A202A203F740027557365724265686176696F724461746154616B2E676574557365724265686176696F724461746174000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000774001EE88194E7B3BBE5AEA2E688B7E7BB9FE8AEA1E695B0E68DAEE68B89E58F9674000131740001307800);
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME8', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000177D86130407870707400007070707400013174000C3020302032202A202A203F2074002747726F7570436861745374617469737469635461736B2E67657447726F7570436861744461746174000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000874001EE7BEA4E8818AE695B0E68DAEE7BB9FE8AEA1E695B0E68DAEE68B89E58F9674000131740001307800);
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME9', 'SYSTEM', NULL, 'com.linkwechat.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720023636F6D2E6C696E6B7765636861742E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E00097872002C636F6D2E6C696E6B7765636861742E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200094C0009626567696E54696D6571007E00094C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0007656E6454696D6571007E00094C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C78707074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000177D8639D587870707400007070707400013174000E30203538203233202A202A203F2074002450616765486F6D65446174615461736B2E67657450616765486F6D65446174614461746174000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000009740012E9A696E9A1B5E695B0E68DAEE7BB9FE8AEA174000131740001307800);
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_LOCKS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_LOCKS`;
CREATE TABLE `QRTZ_LOCKS` (
  `sched_name` varchar(120) NOT NULL,
  `lock_name` varchar(40) NOT NULL,
  PRIMARY KEY (`sched_name`,`lock_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_LOCKS
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_LOCKS` VALUES ('RuoyiScheduler', 'STATE_ACCESS');
INSERT INTO `QRTZ_LOCKS` VALUES ('RuoyiScheduler', 'TRIGGER_ACCESS');
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
  `sched_name` varchar(120) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  PRIMARY KEY (`sched_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_SCHEDULER_STATE
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
CREATE TABLE `QRTZ_SCHEDULER_STATE` (
  `sched_name` varchar(120) NOT NULL,
  `instance_name` varchar(200) NOT NULL,
  `last_checkin_time` bigint(13) NOT NULL,
  `checkin_interval` bigint(13) NOT NULL,
  PRIMARY KEY (`sched_name`,`instance_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_SCHEDULER_STATE
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_SCHEDULER_STATE` VALUES ('RuoyiScheduler', 'VM-0-4-centos1641655853076', 1641866936368, 15000);
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
  `sched_name` varchar(120) NOT NULL,
  `trigger_name` varchar(200) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  `repeat_count` bigint(7) NOT NULL,
  `repeat_interval` bigint(12) NOT NULL,
  `times_triggered` bigint(10) NOT NULL,
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
  `sched_name` varchar(120) NOT NULL,
  `trigger_name` varchar(200) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  `str_prop_1` varchar(512) DEFAULT NULL,
  `str_prop_2` varchar(512) DEFAULT NULL,
  `str_prop_3` varchar(512) DEFAULT NULL,
  `int_prop_1` int(11) DEFAULT NULL,
  `int_prop_2` int(11) DEFAULT NULL,
  `long_prop_1` bigint(20) DEFAULT NULL,
  `long_prop_2` bigint(20) DEFAULT NULL,
  `dec_prop_1` decimal(13,4) DEFAULT NULL,
  `dec_prop_2` decimal(13,4) DEFAULT NULL,
  `bool_prop_1` varchar(1) DEFAULT NULL,
  `bool_prop_2` varchar(1) DEFAULT NULL,
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
CREATE TABLE `QRTZ_TRIGGERS` (
  `sched_name` varchar(120) NOT NULL,
  `trigger_name` varchar(200) NOT NULL,
  `trigger_group` varchar(200) NOT NULL,
  `job_name` varchar(200) NOT NULL,
  `job_group` varchar(200) NOT NULL,
  `description` varchar(250) DEFAULT NULL,
  `next_fire_time` bigint(13) DEFAULT NULL,
  `prev_fire_time` bigint(13) DEFAULT NULL,
  `priority` int(11) DEFAULT NULL,
  `trigger_state` varchar(16) NOT NULL,
  `trigger_type` varchar(8) NOT NULL,
  `start_time` bigint(13) NOT NULL,
  `end_time` bigint(13) DEFAULT NULL,
  `calendar_name` varchar(200) DEFAULT NULL,
  `misfire_instr` smallint(2) DEFAULT NULL,
  `job_data` blob,
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  KEY `sched_name` (`sched_name`,`job_name`,`job_group`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of QRTZ_TRIGGERS
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME10', 'SYSTEM', 'TASK_CLASS_NAME10', 'SYSTEM', NULL, 1641913200000, -1, 5, 'WAITING', 'CRON', 1641829480000, 0, NULL, -1, '');
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME11', 'SYSTEM', 'TASK_CLASS_NAME11', 'SYSTEM', NULL, 1641867000000, 1641863400000, 5, 'WAITING', 'CRON', 1641829480000, 0, NULL, -1, '');
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'SYSTEM', 'TASK_CLASS_NAME4', 'SYSTEM', NULL, 1641829500000, -1, 5, 'PAUSED', 'CRON', 1641829479000, 0, NULL, 2, '');
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME6', 'SYSTEM', 'TASK_CLASS_NAME6', 'SYSTEM', NULL, 1641829500000, -1, 5, 'PAUSED', 'CRON', 1641829479000, 0, NULL, -1, '');
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME7', 'SYSTEM', 'TASK_CLASS_NAME7', 'SYSTEM', NULL, 1641924000000, 1641837600000, 5, 'WAITING', 'CRON', 1641829480000, 0, NULL, -1, '');
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME8', 'SYSTEM', 'TASK_CLASS_NAME8', 'SYSTEM', NULL, 1641924000000, 1641837600000, 5, 'WAITING', 'CRON', 1641829480000, 0, NULL, -1, '');
INSERT INTO `QRTZ_TRIGGERS` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME9', 'SYSTEM', 'TASK_CLASS_NAME9', 'SYSTEM', NULL, 1641916680000, 1641830280000, 5, 'WAITING', 'CRON', 1641829480000, 0, NULL, -1, '');
COMMIT;

-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table` (
  `table_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_name` varchar(200) DEFAULT '' COMMENT '表名称',
  `table_comment` varchar(500) DEFAULT '' COMMENT '表描述',
  `class_name` varchar(100) DEFAULT '' COMMENT '实体类名称',
  `tpl_category` varchar(200) DEFAULT 'crud' COMMENT '使用的模板（crud单表操作 tree树表操作）',
  `package_name` varchar(100) DEFAULT NULL COMMENT '生成包路径',
  `module_name` varchar(30) DEFAULT NULL COMMENT '生成模块名',
  `business_name` varchar(30) DEFAULT NULL COMMENT '生成业务名',
  `function_name` varchar(50) DEFAULT NULL COMMENT '生成功能名',
  `function_author` varchar(50) DEFAULT NULL COMMENT '生成功能作者',
  `gen_type` char(1) DEFAULT '0' COMMENT '生成代码方式（0zip压缩包 1自定义路径）',
  `gen_path` varchar(200) DEFAULT '/' COMMENT '生成路径（不填默认项目路径）',
  `options` varchar(1000) DEFAULT NULL COMMENT '其它生成选项',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`table_id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='代码生成业务表';

-- ----------------------------
-- Records of gen_table
-- ----------------------------
BEGIN;
INSERT INTO `gen_table` VALUES (25, 'we_message_push', '消息发送的表', 'WeMessagePush', 'crud', 'com.ruoyi.system', 'system', 'push', '消息发送的', 'ruoyi', '0', '/', NULL, 'admin', '2020-10-28 13:58:22', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (26, 'we_config', '系统设置表', 'WeConfig', 'crud', 'com.ruoyi.system', 'system', 'config', '系统设置', 'ruoyi', '0', '/', '{}', 'admin', '2020-12-08 23:21:44', '', '2020-12-08 23:23:14', NULL);
INSERT INTO `gen_table` VALUES (28, 'we_chat_contact_mapping', '聊天关系映射表', 'WeChatContactMapping', 'crud', 'com.ruoyi.system', 'system', 'mapping', '聊天关系映射', 'ruoyi', '0', '/', NULL, 'admin', '2020-12-28 01:44:25', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (36, 'sys_oper_log', '操作日志记录', 'SysOperLog', 'crud', 'com.ruoyi.system', 'system', 'log', '操作日志记录', 'ruoyi', '0', '/', NULL, 'WeCome', '2021-02-23 19:58:29', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (37, 'sys_dict_type', '字典类型表', 'SysDictType', 'crud', 'com.ruoyi.system', 'system', 'type', '字典类型', 'ruoyi', '0', '/', NULL, 'WeCome', '2021-02-24 23:57:47', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (38, 'sys_dept', '部门表', 'SysDept', 'crud', 'com.ruoyi.system', 'system', 'dept', '部门', 'ruoyi', '0', '/', '{}', 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:46:59', NULL);
INSERT INTO `gen_table` VALUES (41, 'we_task_fission_complete_record', '裂变任务完成记录', 'WeTaskFissionCompleteRecord', 'crud', 'com.ruoyi.system', 'system', 'record', '裂变任务完成记录', 'ruoyi', '0', '/', NULL, 'admin', '2021-03-17 17:58:50', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (43, 'we_chat_contact', '会话列表', 'WeChatContact', 'crud', 'com.linkwechat', 'linkwechat', 'contact', '会话列', 'ruoyi', '0', '/', NULL, 'admin', '2021-07-28 00:21:06', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (44, 'we_chat_contact_msg', '会话消息', 'WeChatContactMsg', 'crud', 'com.linkwechat', 'linkwechat', 'msg', '会话消息', 'ruoyi', '0', '/', NULL, 'admin', '2021-07-28 00:21:07', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (45, 'we_group_message_list', '群发消息列表', 'WeGroupMessageList', 'crud', 'com.linkwechat', 'linkwechat', 'list', '群发消息列', 'ruoyi', '0', '/', NULL, 'admin_prod', '2021-10-19 22:23:40', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (46, 'we_group_message_attachments', '群发消息附件表', 'WeGroupMessageAttachments', 'crud', 'com.linkwechat', 'linkwechat', 'attachments', '群发消息附件', 'ruoyi', '0', '/', NULL, 'admin_prod', '2021-10-19 22:23:51', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (47, 'we_group_message_send_result', '群发消息成员执行结果表', 'WeGroupMessageSendResult', 'crud', 'com.linkwechat', 'linkwechat', 'result', '群发消息成员执行结果', 'ruoyi', '0', '/', NULL, 'admin_prod', '2021-10-19 22:24:02', '', NULL, NULL);
INSERT INTO `gen_table` VALUES (48, 'we_group_message_template', '群发消息模板', 'WeGroupMessageTemplate', 'crud', 'com.linkwechat', 'linkwechat', 'template', '群发消息模板', 'ruoyi', '0', '/', NULL, 'admin_prod', '2021-10-27 21:44:33', '', NULL, NULL);
COMMIT;

-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column` (
  `column_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_id` varchar(64) DEFAULT NULL COMMENT '归属表编号',
  `column_name` varchar(200) DEFAULT NULL COMMENT '列名称',
  `column_comment` varchar(500) DEFAULT NULL COMMENT '列描述',
  `column_type` varchar(100) DEFAULT NULL COMMENT '列类型',
  `java_type` varchar(500) DEFAULT NULL COMMENT 'JAVA类型',
  `java_field` varchar(200) DEFAULT NULL COMMENT 'JAVA字段名',
  `is_pk` char(1) DEFAULT NULL COMMENT '是否主键（1是）',
  `is_increment` char(1) DEFAULT NULL COMMENT '是否自增（1是）',
  `is_required` char(1) DEFAULT NULL COMMENT '是否必填（1是）',
  `is_insert` char(1) DEFAULT NULL COMMENT '是否为插入字段（1是）',
  `is_edit` char(1) DEFAULT NULL COMMENT '是否编辑字段（1是）',
  `is_list` char(1) DEFAULT NULL COMMENT '是否列表字段（1是）',
  `is_query` char(1) DEFAULT NULL COMMENT '是否查询字段（1是）',
  `query_type` varchar(200) DEFAULT 'EQ' COMMENT '查询方式（等于、不等于、大于、小于、范围）',
  `html_type` varchar(200) DEFAULT NULL COMMENT '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  `dict_type` varchar(200) DEFAULT '' COMMENT '字典类型',
  `sort` int(11) DEFAULT NULL COMMENT '排序',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`column_id`)
) ENGINE=InnoDB AUTO_INCREMENT=431 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='代码生成业务表字段';

-- ----------------------------
-- Records of gen_table_column
-- ----------------------------
BEGIN;
INSERT INTO `gen_table_column` VALUES (179, '25', 'message_push_id', '主键id', 'bigint(20)', 'Long', 'messagePushId', '1', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2020-10-28 13:58:22', '', NULL);
INSERT INTO `gen_table_column` VALUES (180, '25', 'push_type', '群发类型 0 发给客户 1 发给客户群', 'int(1)', 'Integer', 'pushType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 2, 'admin', '2020-10-28 13:58:22', '', NULL);
INSERT INTO `gen_table_column` VALUES (181, '25', 'message_type', '消息类型 0 文本消息  1 图片消息 2 语音消息  3 视频消息    4 文件消息 5 文本卡片消息 6 图文消息\r\n7 图文消息（mpnews） 8 markdown消息 9 小程序通知消息 10 任务卡片消息', 'varchar(2)', 'String', 'messageType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (182, '25', 'to_user', '指定接收消息的成员', 'varchar(1000)', 'String', 'toUser', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 4, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (183, '25', 'to_party', '指定接收消息的部门', 'varchar(255)', 'String', 'toParty', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (184, '25', 'to_tag', '指定接收消息的标签', 'varchar(255)', 'String', 'toTag', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (185, '25', 'message_json', '消息体', 'text', 'String', 'messageJson', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (186, '25', 'push_range', '消息范围 0 全部客户  1 指定客户', 'varchar(1)', 'String', 'pushRange', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (187, '25', 'create_by', NULL, 'varchar(64)', 'String', 'createBy', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 9, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (188, '25', 'create_time', NULL, 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 10, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (189, '25', 'update_by', NULL, 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 11, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (190, '25', 'update_time', NULL, 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 12, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (191, '25', 'del_flag', '0 未删除 1 已删除', 'int(1)', 'Integer', 'delFlag', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 13, 'admin', '2020-10-28 13:58:23', '', NULL);
INSERT INTO `gen_table_column` VALUES (192, '26', 'id', '主键id', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2020-12-08 23:21:44', '', '2020-12-08 23:23:14');
INSERT INTO `gen_table_column` VALUES (193, '26', 'name', '名称', 'varchar(50)', 'String', 'name', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2020-12-08 23:21:44', '', '2020-12-08 23:23:14');
INSERT INTO `gen_table_column` VALUES (194, '26', 'status', '状态 1:开启 0:关闭', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', 'sys_notice_status', 3, 'admin', '2020-12-08 23:21:44', '', '2020-12-08 23:23:14');
INSERT INTO `gen_table_column` VALUES (195, '26', 'type', '类型', 'int(11)', 'Long', 'type', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 4, 'admin', '2020-12-08 23:21:44', '', '2020-12-08 23:23:14');
INSERT INTO `gen_table_column` VALUES (204, '28', 'id', '主键id', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (205, '28', 'from_id', '发送人id', 'varchar(32)', 'String', 'fromId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (206, '28', 'from_avatar', '发送人头像', 'varchar(200)', 'String', 'fromAvatar', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (207, '28', 'from_name', '发送人姓名', 'varchar(50)', 'String', 'fromName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 4, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (208, '28', 'from_gender', '发送人性别 0-未知 1-男性 2-女性', 'tinyint(4)', 'Integer', 'fromGender', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (209, '28', 'revice_avatar', '接收人头像', 'varchar(200)', 'String', 'reviceAvatar', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (210, '28', 'revice_name', '接收人姓名', 'varchar(50)', 'String', 'reviceName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 7, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (211, '28', 'revice_gender', '接收人性别 0-未知 1-男性 2-女性', 'tinyint(4)', 'Integer', 'reviceGender', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (212, '28', 'revice_id', '接收人id', 'varchar(32)', 'String', 'reviceId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (213, '28', 'room_id', '群聊id', 'varchar(32)', 'String', 'roomId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2020-12-28 01:44:25', '', NULL);
INSERT INTO `gen_table_column` VALUES (214, '28', 'is_custom', '接收人是否为客户 0-成员 1-客户 2-机器人', 'tinyint(4)', 'Integer', 'isCustom', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2020-12-28 01:44:26', '', NULL);
INSERT INTO `gen_table_column` VALUES (285, '36', 'oper_id', '日志主键', 'bigint(20)', 'Long', 'operId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (286, '36', 'title', '模块标题', 'varchar(50)', 'String', 'title', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 2, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (287, '36', 'business_type', '业务类型（0其它 1新增 2修改 3删除）', 'int(11)', 'Long', 'businessType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 3, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (288, '36', 'method', '方法名称', 'varchar(100)', 'String', 'method', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 4, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (289, '36', 'request_method', '请求方式', 'varchar(10)', 'String', 'requestMethod', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (290, '36', 'operator_type', '操作类别（0其它 1后台用户 2手机端用户）', 'int(11)', 'Long', 'operatorType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 6, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (291, '36', 'oper_name', '操作人员', 'varchar(50)', 'String', 'operName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 7, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (292, '36', 'dept_name', '部门名称', 'varchar(50)', 'String', 'deptName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 8, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (293, '36', 'oper_url', '请求URL', 'varchar(255)', 'String', 'operUrl', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 9, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (294, '36', 'oper_ip', '主机地址', 'varchar(50)', 'String', 'operIp', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 10, 'WeCome', '2021-02-23 19:58:29', '', NULL);
INSERT INTO `gen_table_column` VALUES (295, '36', 'oper_location', '操作地点', 'varchar(255)', 'String', 'operLocation', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 11, 'WeCome', '2021-02-23 19:58:30', '', NULL);
INSERT INTO `gen_table_column` VALUES (296, '36', 'oper_param', '请求参数', 'varchar(2000)', 'String', 'operParam', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 12, 'WeCome', '2021-02-23 19:58:30', '', NULL);
INSERT INTO `gen_table_column` VALUES (297, '36', 'json_result', '返回参数', 'varchar(2000)', 'String', 'jsonResult', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 13, 'WeCome', '2021-02-23 19:58:30', '', NULL);
INSERT INTO `gen_table_column` VALUES (298, '36', 'status', '操作状态（0正常 1异常）', 'int(11)', 'Long', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 14, 'WeCome', '2021-02-23 19:58:30', '', NULL);
INSERT INTO `gen_table_column` VALUES (299, '36', 'error_msg', '错误消息', 'varchar(2000)', 'String', 'errorMsg', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 15, 'WeCome', '2021-02-23 19:58:30', '', NULL);
INSERT INTO `gen_table_column` VALUES (300, '36', 'oper_time', '操作时间', 'datetime', 'Date', 'operTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'datetime', '', 16, 'WeCome', '2021-02-23 19:58:30', '', NULL);
INSERT INTO `gen_table_column` VALUES (301, '37', 'dict_id', '字典主键', 'bigint(20)', 'Long', 'dictId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'WeCome', '2021-02-24 23:57:47', '', NULL);
INSERT INTO `gen_table_column` VALUES (302, '37', 'dict_name', '字典名称', 'varchar(100)', 'String', 'dictName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'WeCome', '2021-02-24 23:57:47', '', NULL);
INSERT INTO `gen_table_column` VALUES (303, '37', 'dict_type', '字典类型', 'varchar(100)', 'String', 'dictType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 3, 'WeCome', '2021-02-24 23:57:47', '', NULL);
INSERT INTO `gen_table_column` VALUES (304, '37', 'status', '状态（0正常 1停用）', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 4, 'WeCome', '2021-02-24 23:57:47', '', NULL);
INSERT INTO `gen_table_column` VALUES (305, '37', 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 5, 'WeCome', '2021-02-24 23:57:47', '', NULL);
INSERT INTO `gen_table_column` VALUES (306, '37', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 6, 'WeCome', '2021-02-24 23:57:47', '', NULL);
INSERT INTO `gen_table_column` VALUES (307, '37', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 7, 'WeCome', '2021-02-24 23:57:48', '', NULL);
INSERT INTO `gen_table_column` VALUES (308, '37', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 8, 'WeCome', '2021-02-24 23:57:48', '', NULL);
INSERT INTO `gen_table_column` VALUES (309, '37', 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'textarea', '', 9, 'WeCome', '2021-02-24 23:57:48', '', NULL);
INSERT INTO `gen_table_column` VALUES (310, '38', 'dept_id', '部门id', 'bigint(20)', 'Long', 'deptId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:46:59');
INSERT INTO `gen_table_column` VALUES (311, '38', 'parent_id', '父部门id', 'bigint(20)', 'Long', 'parentId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 2, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:46:59');
INSERT INTO `gen_table_column` VALUES (312, '38', 'ancestors', '祖级列表', 'varchar(50)', 'String', 'ancestors', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 3, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:46:59');
INSERT INTO `gen_table_column` VALUES (313, '38', 'dept_name', '部门名称', 'varchar(30)', 'String', 'deptName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 4, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (314, '38', 'order_num', '显示顺序', 'int(11)', 'Long', 'orderNum', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (315, '38', 'leader', '负责人', 'varchar(20)', 'String', 'leader', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (316, '38', 'phone', '联系电话', 'varchar(11)', 'String', 'phone', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 7, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (317, '38', 'email', '邮箱', 'varchar(50)', 'String', 'email', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 8, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (318, '38', 'status', '部门状态（0正常 1停用）', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 9, 'WeCome', '2021-03-06 17:30:40', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (319, '38', 'del_flag', '删除标志（0代表存在 2代表删除）', 'char(1)', 'String', 'delFlag', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 10, 'WeCome', '2021-03-06 17:30:41', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (320, '38', 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 11, 'WeCome', '2021-03-06 17:30:41', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (321, '38', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 12, 'WeCome', '2021-03-06 17:30:41', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (322, '38', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 13, 'WeCome', '2021-03-06 17:30:41', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (323, '38', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 14, 'WeCome', '2021-03-06 17:30:41', '', '2021-03-17 15:47:00');
INSERT INTO `gen_table_column` VALUES (338, '41', 'id', '主键', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2021-03-17 17:58:50', '', NULL);
INSERT INTO `gen_table_column` VALUES (339, '41', 'task_fission_id', '任务裂变表id', 'bigint(20)', 'Long', 'taskFissionId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2021-03-17 17:58:50', '', NULL);
INSERT INTO `gen_table_column` VALUES (340, '41', 'fission_record_id', '任务裂变记录表id', 'bigint(20)', 'Long', 'fissionRecordId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2021-03-17 17:58:50', '', NULL);
INSERT INTO `gen_table_column` VALUES (341, '41', 'customer_id', '裂变客户id', 'varchar(64)', 'String', 'customerId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2021-03-17 17:58:50', '', NULL);
INSERT INTO `gen_table_column` VALUES (342, '41', 'customer_name', '裂变客户姓名', 'varchar(100)', 'String', 'customerName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 5, 'admin', '2021-03-17 17:58:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (343, '41', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2021-03-17 17:58:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (352, '43', 'id', '主键id', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (353, '43', 'msg_id', '消息id', 'varchar(50)', 'String', 'msgId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (354, '43', 'from_id', '发送人id', 'varchar(32)', 'String', 'fromId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (355, '43', 'receive_id', '接收人id（列表）', 'text', 'String', 'receiveId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'textarea', '', 4, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (356, '43', 'room_id', '群聊id', 'varchar(32)', 'String', 'roomId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (357, '43', 'type', '消息类型（1 内部员工 2 外部联系人 3 群聊）', 'tinyint(4)', 'Integer', 'type', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 6, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (358, '43', 'send_time', '发送时间', 'datetime', 'Date', 'sendTime', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 7, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (359, '43', 'contact', '最后一条消息内容', 'text', 'String', 'contact', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'textarea', '', 8, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (360, '43', 'create_by', '创建人', 'varchar(50)', 'String', 'createBy', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 9, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (361, '43', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 10, 'admin', '2021-07-28 00:21:06', '', NULL);
INSERT INTO `gen_table_column` VALUES (362, '43', 'update_by', '修改人', 'varchar(50)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 11, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (363, '43', 'update_time', '修改时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 12, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (364, '43', 'del_flg', '删除标识 0正常 1 删除', 'tinyint(4)', 'Integer', 'delFlg', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 13, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (365, '44', 'id', '主键id', 'bigint(20)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (366, '44', 'msg_id', '消息id', 'varchar(50)', 'String', 'msgId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (367, '44', 'from_id', '发送人id', 'varchar(32)', 'String', 'fromId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (368, '44', 'to_list', '接收人id（列表）', 'text', 'String', 'toList', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'textarea', '', 4, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (369, '44', 'room_id', '群聊id', 'varchar(32)', 'String', 'roomId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (370, '44', 'action', '消息类型', 'varchar(20)', 'String', 'action', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (371, '44', 'msg_type', '消息类型(如：文本，图片)', 'varchar(20)', 'String', 'msgType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 7, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (372, '44', 'msg_time', '发送时间', 'int(11)', 'Long', 'msgTime', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (373, '44', 'contact', '消息内容', 'text', 'String', 'contact', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'textarea', '', 9, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (374, '44', 'create_by', '创建人', 'varchar(50)', 'String', 'createBy', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 10, 'admin', '2021-07-28 00:21:07', '', NULL);
INSERT INTO `gen_table_column` VALUES (375, '44', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 11, 'admin', '2021-07-28 00:21:08', '', NULL);
INSERT INTO `gen_table_column` VALUES (376, '44', 'update_by', '修改人', 'varchar(50)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 12, 'admin', '2021-07-28 00:21:08', '', NULL);
INSERT INTO `gen_table_column` VALUES (377, '44', 'update_time', '修改时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 13, 'admin', '2021-07-28 00:21:08', '', NULL);
INSERT INTO `gen_table_column` VALUES (378, '44', 'del_flg', '删除标识 0正常 1 删除', 'tinyint(4)', 'Integer', 'delFlg', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 14, 'admin', '2021-07-28 00:21:08', '', NULL);
INSERT INTO `gen_table_column` VALUES (379, '45', 'id', '主键id', 'bigint(64)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin_prod', '2021-10-19 22:23:40', '', NULL);
INSERT INTO `gen_table_column` VALUES (380, '45', 'msg_id', '企业群发消息的id', 'varchar(64)', 'String', 'msgId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin_prod', '2021-10-19 22:23:40', '', NULL);
INSERT INTO `gen_table_column` VALUES (381, '45', 'chat_type', '群发任务的类型，默认为single，表示发送给客户，group表示发送给客户群', 'varchar(20)', 'String', 'chatType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin_prod', '2021-10-19 22:23:40', '', NULL);
INSERT INTO `gen_table_column` VALUES (382, '45', 'user_id', '群发消息创建者userid', 'varchar(200)', 'String', 'userId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (383, '45', 'send_time', '发送时间', 'datetime', 'Date', 'sendTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'datetime', '', 5, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (384, '45', 'create_type', '群发消息创建来源。0：企业 1：个人', 'tinyint(4)', 'Integer', 'createType', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 6, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (385, '45', 'setting_time', '设置发送时间', 'varchar(255)', 'String', 'settingTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 7, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (386, '45', 'is_task', '是否定时任务 0 常规 1 定时发送', 'tinyint(4)', 'Integer', 'isTask', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (387, '45', 'create_by', '创建人', 'varchar(64)', 'String', 'createBy', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 9, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (388, '45', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 10, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (389, '45', 'update_by', '修改人', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 11, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (390, '45', 'update_time', '修改时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 12, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (391, '45', 'del_flag', '删除标识 0 有效 1删除', 'tinyint(4)', 'Integer', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 13, 'admin_prod', '2021-10-19 22:23:41', '', NULL);
INSERT INTO `gen_table_column` VALUES (392, '46', 'id', '主键id', 'bigint(64)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (393, '46', 'msg_id', '企业群发消息的id', 'varchar(64)', 'String', 'msgId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (394, '46', 'msg_type', '消息类型 文本:text 图片:image 图文:link 小程序:miniprogram 视频:video 文件:file ', 'varchar(20)', 'String', 'msgType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 3, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (395, '46', 'content', '消息内容', 'varchar(4000)', 'String', 'content', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'editor', '', 4, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (396, '46', 'media_id', '媒体id', 'varchar(64)', 'String', 'mediaId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (397, '46', 'title', '消息标题', 'varchar(100)', 'String', 'title', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (398, '46', 'description', '消息描述', 'varchar(512)', 'String', 'description', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 7, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (399, '46', 'link_url', '消息链接', 'varchar(500)', 'String', 'linkUrl', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 8, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (400, '46', 'pic_url', '消息图片地址', 'varchar(500)', 'String', 'picUrl', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 9, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (401, '46', 'app_id', '小程序appid', 'varchar(64)', 'String', 'appId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (402, '46', 'create_by', '创建人', 'varchar(64)', 'String', 'createBy', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 11, 'admin_prod', '2021-10-19 22:23:51', '', NULL);
INSERT INTO `gen_table_column` VALUES (403, '46', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 12, 'admin_prod', '2021-10-19 22:23:52', '', NULL);
INSERT INTO `gen_table_column` VALUES (404, '46', 'update_by', '修改人', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 13, 'admin_prod', '2021-10-19 22:23:52', '', NULL);
INSERT INTO `gen_table_column` VALUES (405, '46', 'update_time', '修改时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 14, 'admin_prod', '2021-10-19 22:23:52', '', NULL);
INSERT INTO `gen_table_column` VALUES (406, '46', 'del_flag', '删除标识 0 有效 1删除', 'tinyint(4)', 'Integer', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 15, 'admin_prod', '2021-10-19 22:23:52', '', NULL);
INSERT INTO `gen_table_column` VALUES (407, '47', 'id', '主键id', 'bigint(64)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (408, '47', 'msg_id', '企业群发消息的id', 'varchar(64)', 'String', 'msgId', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (409, '47', 'user_id', '企业服务人员的userid', 'varchar(200)', 'String', 'userId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (410, '47', 'external_userid', '外部联系人userid', 'varchar(64)', 'String', 'externalUserid', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (411, '47', 'chat_id', '外部客户群id', 'varchar(64)', 'String', 'chatId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (412, '47', 'status', '发送状态：0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败', 'tinyint(4)', 'Integer', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 6, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (413, '47', 'send_time', '发送时间，发送状态为1时返回', 'datetime', 'Date', 'sendTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'datetime', '', 7, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (414, '47', 'create_by', '创建人', 'varchar(64)', 'String', 'createBy', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 8, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (415, '47', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 9, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (416, '47', 'update_by', '修改人', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 10, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (417, '47', 'update_time', '修改时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 11, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (418, '47', 'del_flag', '删除标识 0 有效 1删除', 'tinyint(4)', 'Integer', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 12, 'admin_prod', '2021-10-19 22:24:02', '', NULL);
INSERT INTO `gen_table_column` VALUES (419, '48', 'id', '主键id', 'bigint(64)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin_prod', '2021-10-27 21:44:33', '', NULL);
INSERT INTO `gen_table_column` VALUES (420, '48', 'chat_type', '群发任务的类，1：表示发送给客户，2：表示发送给客户群', 'varchar(20)', 'String', 'chatType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 2, 'admin_prod', '2021-10-27 21:44:33', '', NULL);
INSERT INTO `gen_table_column` VALUES (421, '48', 'context', '群发内容', 'varchar(4000)', 'String', 'context', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 3, 'admin_prod', '2021-10-27 21:44:33', '', NULL);
INSERT INTO `gen_table_column` VALUES (422, '48', 'send_time', '发送时间', 'datetime', 'Date', 'sendTime', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'datetime', '', 4, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (423, '48', 'filter_condition', '条件筛选', 'varchar(2000)', 'String', 'filterCondition', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'textarea', '', 5, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (424, '48', 'is_task', '是否定时任务 0 立即发送 1 定时发送', 'tinyint(4)', 'Integer', 'isTask', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'input', '', 6, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (425, '48', 'status', '是否执行 -1：失败  0：未执行 1：完成 2：取消', 'tinyint(4)', 'Integer', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 7, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (426, '48', 'create_by', '创建人', 'varchar(64)', 'String', 'createBy', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 8, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (427, '48', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 9, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (428, '48', 'update_by', '修改人', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 10, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (429, '48', 'update_time', '修改时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 11, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
INSERT INTO `gen_table_column` VALUES (430, '48', 'del_flag', '删除标识 0 有效 1删除', 'tinyint(4)', 'Integer', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 12, 'admin_prod', '2021-10-27 21:44:34', '', NULL);
COMMIT;

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
  `config_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='参数配置表';

-- ----------------------------
-- Records of sys_config
-- ----------------------------
BEGIN;
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '初始化密码 123456');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '深色主题theme-dark，浅色主题theme-light');
COMMIT;

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
  `dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
  `parent_id` bigint(20) DEFAULT '0' COMMENT '父部门id',
  `ancestors` varchar(50) DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30) DEFAULT '' COMMENT '部门名称',
  `order_num` int(11) DEFAULT '0' COMMENT '显示顺序',
  `leader` varchar(20) DEFAULT NULL COMMENT '负责人',
  `phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
  `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
  `status` char(1) DEFAULT '0' COMMENT '部门状态（0正常 1停用）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='部门表';

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
BEGIN;
INSERT INTO `sys_dept` VALUES (100, 0, '0', '企业结构', 0, 'LinkWeChat', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2021-08-25 18:33:28');
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '南京阿尔文', 1, '江', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2021-08-25 18:33:28');
INSERT INTO `sys_dept` VALUES (102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2021-08-25 18:33:28');
INSERT INTO `sys_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00');
INSERT INTO `sys_dept` VALUES (110, 100, '0,100', 'testorg', 1, NULL, NULL, NULL, '0', '2', 'admin', '2021-08-03 13:04:26', '', NULL);
INSERT INTO `sys_dept` VALUES (111, 101, '0,100,101', '运营部', 0, '王', '18795958888', NULL, '0', '0', 'admin', '2021-08-25 18:33:21', '', NULL);
COMMIT;

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data` (
  `dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int(11) DEFAULT '0' COMMENT '字典排序',
  `dict_label` varchar(100) DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100) DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100) DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100) DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1) DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='字典数据表';

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
BEGIN;
INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '新增操作');
INSERT INTO `sys_dict_data` VALUES (19, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '修改操作');
INSERT INTO `sys_dict_data` VALUES (20, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '删除操作');
INSERT INTO `sys_dict_data` VALUES (21, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '授权操作');
INSERT INTO `sys_dict_data` VALUES (22, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '导出操作');
INSERT INTO `sys_dict_data` VALUES (23, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '导入操作');
INSERT INTO `sys_dict_data` VALUES (24, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '强退操作');
INSERT INTO `sys_dict_data` VALUES (25, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '生成操作');
INSERT INTO `sys_dict_data` VALUES (26, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '清空操作');
INSERT INTO `sys_dict_data` VALUES (27, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态');
INSERT INTO `sys_dict_data` VALUES (28, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '停用状态');
COMMIT;

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type` (
  `dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`),
  UNIQUE KEY `dict_type` (`dict_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='字典类型表';

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
BEGIN;
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '登录状态列表');
COMMIT;

-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job` (
  `job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `job_name` varchar(64) NOT NULL DEFAULT '' COMMENT '任务名称',
  `job_group` varchar(64) NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  `invoke_target` varchar(500) NOT NULL COMMENT '调用目标字符串',
  `cron_expression` varchar(255) DEFAULT '' COMMENT 'cron执行表达式',
  `misfire_policy` varchar(20) DEFAULT '3' COMMENT '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  `concurrent` char(1) DEFAULT '1' COMMENT '是否并发执行（0允许 1禁止）',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1暂停）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`job_id`,`job_name`,`job_group`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='定时任务调度表';

-- ----------------------------
-- Records of sys_job
-- ----------------------------
BEGIN;
INSERT INTO `sys_job` VALUES (4, '会话存档', 'SYSTEM', 'conversationArchiveTask.FinanceTask', '0 */1 * * * ?', '3', '1', '1', 'admin', '2020-12-13 12:14:38', 'admin', '2021-10-18 13:33:16', '');
INSERT INTO `sys_job` VALUES (6, '定时消息群发', 'SYSTEM', 'groupMessageTask.messageTask', '0 */1 * * * ?', '1', '1', '1', 'admin', '2021-02-10 10:07:22', 'admin', '2021-10-30 18:42:26', '');
INSERT INTO `sys_job` VALUES (7, '联系客户统计数据拉取', 'SYSTEM', 'UserBehaviorDataTak.getUserBehaviorData', '0 0 2 * * ?', '1', '1', '0', 'admin', '2021-02-25 16:47:59', 'admin', '2021-07-29 18:44:25', '');
INSERT INTO `sys_job` VALUES (8, '群聊数据统计数据拉取', 'SYSTEM', 'GroupChatStatisticTask.getGroupChatData', '0 0 2 * * ? ', '1', '1', '0', 'admin', '2021-02-25 16:49:44', '', '2021-07-29 18:44:26', '');
INSERT INTO `sys_job` VALUES (9, '首页数据统计', 'SYSTEM', 'PageHomeDataTask.getPageHomeDataData', '0 58 23 * * ? ', '1', '1', '0', 'admin', '2021-02-25 16:52:23', 'admin_prod', '2021-12-07 23:59:09', '');
INSERT INTO `sys_job` VALUES (10, '任务宝过期任务扫描', 'SYSTEM', 'TaskFissionStatusTask.taskFissionExpiredStatusHandle', '0 0 23 * * ? ', '1', '1', '0', 'admin', '2021-04-12 15:29:52', 'admin', '2021-07-29 18:44:30', '');
INSERT INTO `sys_job` VALUES (11, '活码使用范围修改任务', 'SYSTEM', 'weQrCodeUpdateTask.qrCodeUpdateTask(\'\')', '0 10 * * * ?', '1', '1', '0', 'admin_prod', '2021-12-08 00:08:50', 'admin_prod', '2021-12-21 23:12:05', '');
COMMIT;

-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log` (
  `job_log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64) NOT NULL COMMENT '任务名称',
  `job_group` varchar(64) NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500) NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500) DEFAULT NULL COMMENT '日志信息',
  `status` char(1) DEFAULT '0' COMMENT '执行状态（0正常 1失败）',
  `exception_info` varchar(2000) DEFAULT '' COMMENT '异常信息',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`)
) ENGINE=InnoDB AUTO_INCREMENT=292904 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='定时任务调度日志表';

-- ----------------------------
-- Records of sys_job_log
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor` (
  `info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(50) DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255) DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50) DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50) DEFAULT '' COMMENT '操作系统',
  `status` char(1) DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) DEFAULT '' COMMENT '提示消息',
  `login_time` datetime DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7830 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='系统访问记录';

-- ----------------------------
-- Records of sys_logininfor
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
  `menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) NOT NULL COMMENT '菜单名称',
  `parent_id` bigint(20) DEFAULT '0' COMMENT '父菜单ID',
  `order_num` int(11) DEFAULT '0' COMMENT '显示顺序',
  `path` varchar(200) DEFAULT '' COMMENT '路由地址',
  `component` varchar(255) DEFAULT NULL COMMENT '组件路径',
  `is_frame` int(11) DEFAULT '1' COMMENT '是否为外链（0是 1否）',
  `menu_type` char(1) DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1) DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `status` char(1) DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
  `perms` varchar(100) DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2216 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='菜单权限表';

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
BEGIN;
INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 70, 'system', NULL, 1, 'M', '0', '0', '', 'system', 'admin', '2018-03-16 11:33:00', 'admin', '2020-10-22 01:22:01', '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 90, 'monitor', NULL, 1, 'M', '0', '0', '', 'monitor', 'admin', '2018-03-16 11:33:00', 'admin', '2020-10-22 01:22:31', '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 80, 'tool', NULL, 1, 'M', '0', '0', '', 'tool', 'admin', '2018-03-16 11:33:00', 'admin', '2020-10-22 01:22:17', '系统工具目录');
INSERT INTO `sys_menu` VALUES (4, '仟微官网', 0, 100, 'http://www.linkwechat.cn', NULL, 0, 'M', '1', '0', '', 'guide', 'admin', '2018-03-16 11:33:00', 'admin', '2021-07-16 00:29:21', '若依官网地址');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', 1, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', 1, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', 1, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', 1, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '部门管理菜单');
INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', 1, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '岗位管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', 1, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', 1, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', 1, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', 'system/log/index', 1, 'M', '0', '0', '', 'log', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '日志管理菜单');
INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', 1, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '在线用户菜单');
INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', 1, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '定时任务菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', 1, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', 1, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '服务监控菜单');
INSERT INTO `sys_menu` VALUES (113, '表单构建', 3, 1, 'build', 'tool/build/index', 1, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '表单构建菜单');
INSERT INTO `sys_menu` VALUES (114, '代码生成', 3, 2, 'gen', 'tool/gen/index', 1, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '代码生成菜单');
INSERT INTO `sys_menu` VALUES (115, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', 1, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', 1, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', 1, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1001, '用户查询', 100, 1, '', '', 1, 'F', '0', '0', 'system:user:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1002, '用户新增', 100, 2, '', '', 1, 'F', '0', '0', 'system:user:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1003, '用户修改', 100, 3, '', '', 1, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1004, '用户删除', 100, 4, '', '', 1, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1005, '用户导出', 100, 5, '', '', 1, 'F', '0', '0', 'system:user:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1006, '用户导入', 100, 6, '', '', 1, 'F', '0', '0', 'system:user:import', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1007, '重置密码', 100, 7, '', '', 1, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1008, '角色查询', 101, 1, '', '', 1, 'F', '0', '0', 'system:role:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1009, '角色新增', 101, 2, '', '', 1, 'F', '0', '0', 'system:role:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1010, '角色修改', 101, 3, '', '', 1, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1011, '角色删除', 101, 4, '', '', 1, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1012, '角色导出', 101, 5, '', '', 1, 'F', '0', '0', 'system:role:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1013, '菜单查询', 102, 1, '', '', 1, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1014, '菜单新增', 102, 2, '', '', 1, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1015, '菜单修改', 102, 3, '', '', 1, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1016, '菜单删除', 102, 4, '', '', 1, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1017, '部门查询', 103, 1, '', '', 1, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1018, '部门新增', 103, 2, '', '', 1, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1019, '部门修改', 103, 3, '', '', 1, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1020, '部门删除', 103, 4, '', '', 1, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1021, '岗位查询', 104, 1, '', '', 1, 'F', '0', '0', 'system:post:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1022, '岗位新增', 104, 2, '', '', 1, 'F', '0', '0', 'system:post:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1023, '岗位修改', 104, 3, '', '', 1, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1024, '岗位删除', 104, 4, '', '', 1, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1025, '岗位导出', 104, 5, '', '', 1, 'F', '0', '0', 'system:post:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1026, '字典查询', 105, 1, '#', '', 1, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1027, '字典新增', 105, 2, '#', '', 1, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1028, '字典修改', 105, 3, '#', '', 1, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1029, '字典删除', 105, 4, '#', '', 1, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1030, '字典导出', 105, 5, '#', '', 1, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1031, '参数查询', 106, 1, '#', '', 1, 'F', '0', '0', 'system:config:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1032, '参数新增', 106, 2, '#', '', 1, 'F', '0', '0', 'system:config:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1033, '参数修改', 106, 3, '#', '', 1, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1034, '参数删除', 106, 4, '#', '', 1, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1035, '参数导出', 106, 5, '#', '', 1, 'F', '0', '0', 'system:config:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1036, '公告查询', 107, 1, '#', '', 1, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1037, '公告新增', 107, 2, '#', '', 1, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1038, '公告修改', 107, 3, '#', '', 1, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1039, '公告删除', 107, 4, '#', '', 1, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1040, '操作查询', 500, 1, '#', '', 1, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1041, '操作删除', 500, 2, '#', '', 1, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1042, '日志导出', 500, 4, '#', '', 1, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1043, '登录查询', 501, 1, '#', '', 1, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1044, '登录删除', 501, 2, '#', '', 1, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1045, '日志导出', 501, 3, '#', '', 1, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', 1, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', 1, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', 1, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', 1, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', 1, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', 1, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', 1, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', 1, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 7, '#', '', 1, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1055, '生成查询', 114, 1, '#', '', 1, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1056, '生成修改', 114, 2, '#', '', 1, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1057, '生成删除', 114, 3, '#', '', 1, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1058, '导入代码', 114, 2, '#', '', 1, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1059, '预览代码', 114, 4, '#', '', 1, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (1060, '生成代码', 114, 5, '#', '', 1, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_menu` VALUES (2001, '客户管理', 0, 20, 'customerManage', NULL, 1, 'M', '0', '0', '', 'user', 'admin', '2020-10-20 22:03:52', 'admin', '2021-05-23 23:09:54', '');
INSERT INTO `sys_menu` VALUES (2002, '企业客户', 2001, 10, 'customer', 'customerManage/customer', 1, 'C', '0', '0', 'customerManage:customer:list', '#', 'admin', '2020-10-20 22:15:31', 'admin', '2021-05-23 23:05:57', '');
INSERT INTO `sys_menu` VALUES (2003, '企业客群', 2001, 20, 'group', 'customerManage/group', 1, 'C', '0', '0', 'customerManage:group:list', '#', 'admin', '2020-10-20 22:32:55', 'admin', '2021-05-23 23:06:12', '');
INSERT INTO `sys_menu` VALUES (2004, '企业标签', 2001, 30, 'tag', 'customerManage/tag', 1, 'C', '0', '0', 'customerManage:tag:list', '#', 'admin', '2020-10-20 22:33:45', 'admin_prod', '2021-12-12 20:28:48', '');
INSERT INTO `sys_menu` VALUES (2005, '离职继承', 2001, 40, 'dimission', 'customerManage/dimission/index', 1, 'C', '0', '0', 'customerManage:dimission:list', '#', 'admin', '2020-10-20 22:34:59', 'admin', '2020-10-28 15:11:40', '');
INSERT INTO `sys_menu` VALUES (2006, '客户详情', 2001, 11, 'customerDetail', 'customerManage/customerDetail', 1, 'C', '1', '0', 'customerManage:customerDetail:list', '#', 'admin', '2020-10-20 22:37:06', 'admin', '2020-10-22 01:18:43', '');
INSERT INTO `sys_menu` VALUES (2007, '客户群详情', 2001, 21, 'groupDetail', 'customerManage/groupDetail', 1, 'C', '1', '0', 'customerManage:groupDetail:list', '#', 'admin', '2020-10-20 22:37:59', 'admin', '2020-10-22 01:18:57', '');
INSERT INTO `sys_menu` VALUES (2008, '通讯录', 2185, 10, 'contacts', NULL, 1, 'M', '0', '0', '', 'tree-table', 'admin', '2020-10-20 22:40:17', 'admin', '2021-05-25 13:50:48', '');
INSERT INTO `sys_menu` VALUES (2009, '组织架构', 2008, 10, 'organization', 'contacts/organization', 1, 'C', '0', '0', 'contacts:organization:list', 'tree', 'admin', '2020-10-20 22:46:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2010, '企业微信管理', 2185, 20, 'enterpriseWechat', NULL, 1, 'M', '0', '0', '', 'wechat', 'admin', '2020-10-20 22:48:05', 'admin', '2021-07-15 01:42:42', '');
INSERT INTO `sys_menu` VALUES (2011, '企业微信管理', 2010, 10, 'enterpriseWechat', 'enterpriseWechat/list', 1, 'C', '0', '0', 'enterpriseWechat:list:list', 'wechat', 'admin', '2020-10-20 22:49:32', 'admin', '2021-07-15 01:40:29', '');
INSERT INTO `sys_menu` VALUES (2012, '查询', 2002, 1, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:query', '#', 'admin', '2020-10-22 18:18:08', 'admin', '2020-10-22 18:20:32', '');
INSERT INTO `sys_menu` VALUES (2013, '导出列表', 2002, 2, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:export', '#', 'admin', '2020-10-22 18:22:39', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2014, '打标签', 2002, 3, '', NULL, 1, 'F', '0', '0', 'customerManage/customer:makeTag', '#', 'admin', '2020-10-22 18:25:47', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2015, '移出标签', 2002, 4, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:removeTag', '#', 'admin', '2020-10-22 18:26:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2016, '同步客户', 2002, 5, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:sync', '#', 'admin', '2020-10-22 18:28:27', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2017, '查看重复客户', 2002, 6, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:checkRepeat', '#', 'admin', '2020-10-22 18:30:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2018, '查询', 2003, 1, '', NULL, 1, 'F', '0', '0', 'customerManage:group:query', '#', 'admin', '2020-10-22 18:33:29', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2019, '导出列表', 2003, 2, '', NULL, 1, 'F', '0', '0', 'customerManage:group:export', '#', 'admin', '2020-10-22 18:34:43', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2020, '同步客户群', 2003, 3, '', NULL, 1, 'F', '0', '0', 'customerManage:group:sync', '#', 'admin', '2020-10-22 18:35:13', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2021, '查看详情', 2003, 4, '', NULL, 1, 'F', '0', '0', 'customerManage:group:view', '#', 'admin', '2020-10-22 18:40:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2022, '查看详情', 2002, 7, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:view', '#', 'admin', '2020-10-22 18:43:41', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2023, '新增标签组', 2004, 1, '', NULL, 1, 'F', '0', '0', 'customerManage:tag:add', '#', 'admin', '2020-10-22 18:46:02', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2024, '同步标签组', 2004, 2, '', NULL, 1, 'F', '0', '0', 'customerManage:tag:sync', '#', 'admin', '2020-10-22 18:46:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2025, '编辑', 2004, 3, '', NULL, 1, 'F', '0', '0', 'customerManage:tag:edit', '#', 'admin', '2020-10-22 18:47:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2026, '删除', 2004, 4, '', NULL, 1, 'F', '0', '0', 'customerManage:tag:remove', '#', 'admin', '2020-10-22 18:47:20', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2027, '查询', 2005, 1, '', NULL, 1, 'F', '0', '0', 'customerManage:dimission:query', '#', 'admin', '2020-10-22 18:49:36', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2028, '已分配的离职员工', 2005, 2, '', NULL, 1, 'F', '0', '0', 'customerManage:dimission:filter', '#', 'admin', '2020-10-22 18:55:40', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2029, '分配发给其他员工', 2005, 3, '', NULL, 1, 'F', '0', '0', 'customerManage:dimission:allocate', '#', 'admin', '2020-10-22 18:56:28', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2030, '编辑', 2005, 3, '', NULL, 1, 'F', '0', '0', 'customerManage:dimission:edit', '#', 'admin', '2020-10-22 18:57:40', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2031, '查询', 2009, 1, '', NULL, 1, 'F', '0', '0', 'contacts:organization:query', '#', 'admin', '2020-10-22 18:59:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2032, '同步成员', 2009, 2, '', NULL, 1, 'F', '0', '0', 'contacts:organization:sync', '#', 'admin', '2020-10-22 19:00:32', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2033, '批量导入', 2009, 3, '', NULL, 1, 'F', '0', '0', 'contacts:organization:import', '#', 'admin', '2020-10-22 19:00:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2034, '添加成员', 2009, 4, '', NULL, 1, 'F', '0', '0', 'contacts:organization:addMember', '#', 'admin', '2020-10-22 19:01:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2035, '查看成员详情', 2009, 5, '', NULL, 1, 'F', '0', '0', 'contacts:organization:view', '#', 'admin', '2020-10-22 19:06:40', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2036, '启用/禁用成员', 2009, 6, '', NULL, 1, 'F', '0', '0', 'contacts:organization:setStatus', '#', 'admin', '2020-10-22 19:08:35', 'admin', '2020-10-28 11:05:50', '');
INSERT INTO `sys_menu` VALUES (2037, '激活成员', 2009, 7, '', NULL, 1, 'F', '0', '0', 'contacts:organization:active', '#', 'admin', '2020-10-22 19:10:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2038, '编辑成员', 2009, 8, '', NULL, 1, 'F', '0', '0', 'contacts:organization:edit', '#', 'admin', '2020-10-22 19:10:41', 'admin', '2020-10-22 19:11:00', '');
INSERT INTO `sys_menu` VALUES (2039, '添加部门', 2009, 9, '', NULL, 1, 'F', '0', '0', 'contacts:organization:addDep', '#', 'admin', '2020-10-22 19:13:21', 'admin', '2020-10-22 19:14:36', '');
INSERT INTO `sys_menu` VALUES (2040, '编辑部门', 2009, 10, '', NULL, 1, 'F', '0', '0', 'contacts:organization:editDep', '#', 'admin', '2020-10-22 19:14:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2041, '查询', 2011, 1, '', NULL, 1, 'F', '0', '0', 'enterpriseWechat:query', '#', 'admin', '2020-10-22 19:17:03', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2042, '添加', 2011, 2, '', NULL, 1, 'F', '0', '0', 'enterpriseWechat:add', '#', 'admin', '2020-10-22 19:26:56', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2043, '查看', 2011, 3, '', NULL, 1, 'F', '0', '0', 'enterpriseWechat:view', '#', 'admin', '2020-10-22 19:28:02', 'admin', '2020-10-22 19:28:14', '');
INSERT INTO `sys_menu` VALUES (2044, '编辑', 2011, 4, '', NULL, 1, 'F', '0', '0', 'enterpriseWechat:edit', '#', 'admin', '2020-10-22 19:29:28', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2045, '激活', 2011, 5, '', NULL, 1, 'F', '0', '0', 'enterpriseWechat:active', '#', 'admin', '2020-10-22 19:29:58', 'admin', '2020-10-22 19:33:40', '');
INSERT INTO `sys_menu` VALUES (2046, '禁用', 2011, 6, '', NULL, 1, 'F', '0', '0', 'enterpriseWechat:forbidden', '#', 'admin', '2020-10-22 19:34:53', 'admin', '2020-10-22 19:35:00', '');
INSERT INTO `sys_menu` VALUES (2048, '已分配客户', 2005, 7, '', NULL, 1, 'F', '0', '0', 'wecom:user:getAllocateCustomers', '#', 'admin', '2020-10-28 13:50:18', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2049, '已分配的群', 2005, 8, '', NULL, 1, 'F', '0', '0', 'wecom:user:getAllocateGroups', '#', 'admin', '2020-10-28 13:50:42', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2050, '已分配离职员工', 2001, 41, 'allocatedStaffList', 'customerManage/dimission/allocatedStaffList', 1, 'C', '1', '0', 'customerManage:dimission:allocatedStaffList', '#', 'admin', '2020-10-28 15:11:17', 'admin', '2020-12-13 16:25:53', '');
INSERT INTO `sys_menu` VALUES (2051, '已分配离职员工详情', 2001, 42, 'allocatedStaffDetail', 'customerManage/dimission/allocatedStaffDetail', 1, 'C', '1', '0', 'customerManage:dimission/allocatedStaffDetail', '#', 'admin', '2020-10-28 15:12:49', 'admin', '2020-12-13 16:25:08', '');
INSERT INTO `sys_menu` VALUES (2052, '引流获客', 0, 10, 'drainageCode', NULL, 1, 'M', '0', '0', '', 'qrcode', 'admin', '2020-11-08 12:11:44', 'admin', '2021-05-23 23:09:40', '');
INSERT INTO `sys_menu` VALUES (2053, '员工活码', 2052, 10, 'staff', 'drainageCode/staff/list', 1, 'C', '0', '0', '', '#', 'admin', '2020-11-08 12:13:21', 'admin_prod', '2021-12-06 09:32:21', '');
INSERT INTO `sys_menu` VALUES (2056, '客户群活码', 2052, 40, 'customerGroup', 'drainageCode/group/list', 1, 'C', '0', '0', '', '#', 'admin', '2020-11-08 12:26:15', 'admin_prod', '2021-12-06 09:32:31', '');
INSERT INTO `sys_menu` VALUES (2060, '欢迎语模板', 2052, 80, 'welcome', 'drainageCode/welcome/list', 1, 'C', '0', '0', '', '#', 'admin', '2020-11-08 12:39:34', 'admin_prod', '2021-12-26 12:33:24', '');
INSERT INTO `sys_menu` VALUES (2062, '素材中心', 2186, 20, 'material', 'material/index', 1, 'C', '0', '0', '', 'material', 'admin', '2020-11-08 12:41:21', 'admin_prod', '2021-11-08 14:36:19', '');
INSERT INTO `sys_menu` VALUES (2063, '文本', 2062, 10, 'text', 'material/text', 1, 'C', '0', '0', 'wechat:category:list', '#', 'admin', '2020-11-08 12:42:44', 'admin', '2020-11-09 11:05:06', '');
INSERT INTO `sys_menu` VALUES (2064, '图片', 2062, 20, 'image', 'material/image', 1, 'C', '0', '0', 'wechat:category:list', '#', 'admin', '2020-11-08 12:43:22', 'admin', '2020-11-09 11:05:12', '');
INSERT INTO `sys_menu` VALUES (2065, '语音', 2062, 30, 'audio', 'material/audio', 1, 'C', '0', '0', 'wechat:category:list', '#', 'admin', '2020-11-08 12:44:19', 'admin', '2020-11-09 11:05:17', '');
INSERT INTO `sys_menu` VALUES (2066, '视频', 2062, 40, 'video', 'material/video', 1, 'C', '0', '0', 'wechat:category:list', '#', 'admin', '2020-11-08 12:44:52', 'admin', '2020-11-09 11:05:22', '');
INSERT INTO `sys_menu` VALUES (2067, '文件', 2062, 50, 'file', 'material/file', 1, 'C', '0', '0', 'wechat:category:list', '#', 'admin', '2020-11-08 12:45:22', 'admin', '2020-11-09 11:05:27', '');
INSERT INTO `sys_menu` VALUES (2068, '添加分类', 2062, 101, '', NULL, 1, 'F', '0', '0', 'wechat:category:add', '#', 'admin', '2020-11-08 12:59:08', 'admin', '2020-11-09 11:08:44', '');
INSERT INTO `sys_menu` VALUES (2069, '删除分类', 2062, 102, '', NULL, 1, 'F', '0', '0', 'wechat:category:remove', '#', 'admin', '2020-11-08 13:02:40', 'admin', '2020-11-09 11:09:11', '');
INSERT INTO `sys_menu` VALUES (2070, '编辑分类', 2062, 103, '', NULL, 1, 'F', '0', '0', 'wechat:category:edit', '#', 'admin', '2020-11-08 13:03:38', 'admin', '2020-11-10 11:02:26', '');
INSERT INTO `sys_menu` VALUES (2071, '添加素材', 2062, 104, '', NULL, 1, 'F', '0', '0', 'wechat:material:add', '#', 'admin', '2020-11-08 13:04:22', 'admin', '2020-11-09 11:09:55', '');
INSERT INTO `sys_menu` VALUES (2072, '删除素材', 2062, 105, '', NULL, 1, 'F', '0', '0', 'wechat:material:remove', '#', 'admin', '2020-11-08 13:04:57', 'admin', '2020-11-10 11:01:26', '');
INSERT INTO `sys_menu` VALUES (2073, '编辑素材', 2062, 106, '', NULL, 1, 'F', '0', '0', 'wechat:material:edit', '#', 'admin', '2020-11-08 13:05:22', 'admin', '2020-11-10 11:01:59', '');
INSERT INTO `sys_menu` VALUES (2074, '客户编辑', 2006, 10, '', NULL, 1, 'F', '0', '0', 'customerManage:customer:edit', '#', 'admin', '2020-11-08 15:46:19', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2075, '素材详情', 2062, 107, '', NULL, 1, 'F', '0', '0', 'wechat:material:query', '#', 'admin', '2020-11-09 11:11:16', 'admin', '2020-11-09 11:11:38', '');
INSERT INTO `sys_menu` VALUES (2076, '上传素材信息', 2062, 108, '', NULL, 1, 'F', '0', '0', 'wechat:material:upload', '#', 'admin', '2020-11-09 11:12:29', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2077, '更换分组', 2062, 109, '', NULL, 1, 'F', '0', '0', 'wechat:material:resetCategory', '#', 'admin', '2020-11-09 11:12:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2078, '素材列表', 2062, 111, '', NULL, 1, 'F', '0', '0', 'wecom:material:list', '#', 'admin', '2020-11-09 11:19:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2079, '会话存档', 2184, 12, 'conversation', NULL, 1, 'M', '0', '0', '', 'education', 'admin', '2020-12-07 10:33:45', 'admin', '2021-05-25 13:45:58', '');
INSERT INTO `sys_menu` VALUES (2080, '内容存档', 2079, 10, 'content', 'conversation/content/index', 1, 'C', '0', '0', '', 'message', 'admin', '2020-12-07 10:35:56', 'admin', '2021-08-13 01:25:29', '');
INSERT INTO `sys_menu` VALUES (2081, '审计安全', 2079, 20, 'security', 'conversation/security/index', 1, 'C', '0', '0', '', 'lock', 'admin', '2020-12-07 10:38:12', 'admin', '2021-08-13 01:25:47', '');
INSERT INTO `sys_menu` VALUES (2082, '流失提醒', 2001, 50, 'lossRemind', 'customerManage/lossRemind', 1, 'C', '0', '0', 'customerManage:lossRemind', '#', 'admin', '2020-12-13 16:22:25', 'admin', '2020-12-13 16:23:18', '');
INSERT INTO `sys_menu` VALUES (2083, '消息群发', 2186, 10, 'groupMessage', NULL, 1, 'M', '0', '0', '', 'guide', 'admin', '2020-12-14 21:40:40', 'admin', '2021-05-25 13:56:24', '');
INSERT INTO `sys_menu` VALUES (2084, '新增群发', 2083, 10, 'add', 'groupMessage/add', 1, 'C', '0', '0', 'customerMessagePush:push:add', '#', 'admin', '2020-12-14 21:41:38', 'admin', '2021-02-21 23:14:26', '');
INSERT INTO `sys_menu` VALUES (2085, '群发记录', 2083, 20, 'record', 'groupMessage/record', 1, 'C', '0', '0', 'customerMessagePush:push:list', '#', 'admin', '2020-12-14 21:44:36', 'admin', '2021-02-21 23:16:52', '');
INSERT INTO `sys_menu` VALUES (2086, '客户流失通知开关', 2082, 1, 'wechatCorp', 'wechat:corp:startCustomerChurnNoticeSwitch', 1, 'F', '1', '0', 'wechat:corp:startCustomerChurnNoticeSwitch', 'switch', 'admin', '2020-12-15 01:52:19', 'admin', '2020-12-15 01:55:07', '');
INSERT INTO `sys_menu` VALUES (2087, '客户流失通知开关查询', 2082, 2, 'wechatCorp', NULL, 1, 'C', '1', '0', 'wechat:corp:getCustomerChurnNoticeSwitch', 'switch', 'admin', '2020-12-15 01:53:42', 'admin', '2020-12-15 01:55:21', '');
INSERT INTO `sys_menu` VALUES (2089, '海报', 2062, 1, 'poster', 'material/poster', 1, 'C', '0', '0', 'wechat:category:list', '#', 'admin', '2020-12-27 14:07:54', 'admin', '2021-01-05 19:42:51', '');
INSERT INTO `sys_menu` VALUES (2090, '聊天工具', 2186, 40, 'appTool', NULL, 1, 'M', '0', '0', '', 'app', 'admin', '2020-12-30 21:15:40', 'admin', '2021-07-14 14:31:03', '');
INSERT INTO `sys_menu` VALUES (2091, '聊天素材', 2090, 10, 'chatToolbar', 'appTool/chatToolbar/list', 1, 'C', '0', '0', 'appTool:chatToolbar:list', '#', 'admin', '2020-12-30 21:16:41', 'admin', '2021-07-14 14:31:14', '');
INSERT INTO `sys_menu` VALUES (2092, '图文详解', 2090, 20, 'explain', 'appTool/chatToolbar/explain', 1, 'C', '1', '0', 'appTool:chatToolbar:explain', '#', 'admin', '2020-12-30 21:18:23', 'admin', '2020-12-30 21:20:02', '');
INSERT INTO `sys_menu` VALUES (2093, '查看已配置信息', 2090, 30, 'config', 'appTool/chatToolbar/config', 1, 'C', '1', '0', 'appTool:chatToolbar:config', '#', 'admin', '2020-12-30 21:19:07', 'admin', '2020-12-30 21:20:06', '');
INSERT INTO `sys_menu` VALUES (2094, '朋友圈', 2090, 40, 'friendCircle', 'appTool/friendCircle/list', 1, 'C', '1', '0', 'appTool/friendCircle/list', '#', 'admin', '2020-12-30 21:20:37', 'admin_prod', '2021-11-24 17:42:08', '');
INSERT INTO `sys_menu` VALUES (2095, '朋友圈功能介绍', 2090, 50, 'friendIntroduce', 'appTool/friendCircle/introduce', 1, 'C', '1', '0', 'appTool/friendCircle/introduce', '#', 'admin', '2020-12-30 21:21:13', 'admin', '2020-12-30 21:23:10', '');
INSERT INTO `sys_menu` VALUES (2096, '朋友圈发布动态', 2090, 60, 'friendPublish', 'appTool/friendCircle/publish', 1, 'C', '1', '0', 'appTool/friendCircle/publish', '#', 'admin', '2020-12-30 21:22:50', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2097, '朋友圈设置顶部背景', 2090, 70, 'friendBackground', 'appTool/friendCircle/background', 1, 'C', '1', '0', 'appTool/friendCircle/background', '#', 'admin', '2020-12-30 21:24:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2098, '任务宝', 2090, 80, 'task', 'appTool/task/list', 1, 'C', '0', '1', 'appTool/task/list', '#', 'admin', '2020-12-30 21:25:14', 'admin', '2021-04-25 17:27:20', '');
INSERT INTO `sys_menu` VALUES (2099, '群裂变', 2090, 100, 'groupFission', 'appTool/groupFission/list', 1, 'C', '0', '1', 'appTool/groupFission/list', '#', 'admin', '2020-12-30 21:25:53', 'admin', '2021-04-25 17:27:28', '');
INSERT INTO `sys_menu` VALUES (2100, '社群运营', 0, 40, 'communityOperating', NULL, 1, 'M', '0', '0', '', 'peoples', 'admin', '2020-12-30 21:27:29', 'admin', '2021-05-23 23:10:29', '');
INSERT INTO `sys_menu` VALUES (2101, '新客拉群', 2100, 10, 'newCustomer', 'communityOperating/newCustomer/list', 1, 'C', '0', '0', 'communityOperating/newCustomer/list', '#', 'admin', '2020-12-30 21:29:50', 'admin_prod', '2021-12-12 21:28:09', '');
INSERT INTO `sys_menu` VALUES (2102, '标签建群', 2100, 30, 'oldCustomer', 'communityOperating/oldCustomer/list', 1, 'C', '0', '0', 'communityOperating/oldCustomer/list', '#', 'admin', '2020-12-30 21:30:31', 'admin_prod', '2021-12-12 21:29:37', '');
INSERT INTO `sys_menu` VALUES (2103, '关键词拉群', 2100, 50, 'keywords', 'communityOperating/keywords/list', 1, 'C', '0', '0', 'communityOperating/keywords/list', '#', 'admin', '2020-12-30 21:31:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2104, '群SOP', 2100, 70, 'groupSOP', 'communityOperating/groupSOP/list', 1, 'C', '0', '0', 'communityOperating/groupSOP/list', '#', 'admin', '2020-12-30 21:31:41', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2105, '群发详情', 2083, 30, 'detail', 'groupMessage/detail', 1, 'C', '1', '0', 'customerMessagePush:push:view', '#', 'admin', '2020-12-30 22:35:29', 'admin', '2021-02-21 23:17:18', '');
INSERT INTO `sys_menu` VALUES (2106, '新客拉群增改查', 2100, 20, 'newCustomerAev', 'communityOperating/newCustomer/aev', 1, 'C', '1', '0', 'communityOperating/newCustomer/aev', '#', 'admin', '2020-12-31 19:36:24', 'admin_prod', '2021-12-12 21:29:52', '');
INSERT INTO `sys_menu` VALUES (2107, '标签建群增改查', 2100, 40, 'oldCustomerAev', 'communityOperating/oldCustomer/aev', 1, 'C', '1', '0', 'communityOperating/oldCustomer/aev', '#', 'admin', '2020-12-31 19:37:51', 'admin_prod', '2021-12-12 21:30:03', '');
INSERT INTO `sys_menu` VALUES (2108, '关键词拉群增改查', 2100, 60, 'keywordsAev', 'communityOperating/keywords/aev', 1, 'C', '1', '0', 'communityOperating/keywords/aev', '#', 'admin', '2020-12-31 19:38:49', 'admin', '2020-12-31 19:54:55', '');
INSERT INTO `sys_menu` VALUES (2109, '群SOP增改查', 2100, 80, 'groupSOPAev', 'communityOperating/groupSOP/aev', 1, 'C', '1', '0', 'communityOperating/groupSOP/aev', '#', 'admin', '2020-12-31 19:39:23', 'admin', '2020-12-31 19:55:14', '');
INSERT INTO `sys_menu` VALUES (2110, '任务宝增改查', 2090, 90, 'taskAev', 'appTool/task/aev', 1, 'C', '1', '0', 'appTool/task/aev', '#', 'admin', '2020-12-31 20:20:31', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2111, '群裂变增改查', 2090, 110, 'groupFissionAev', 'appTool/groupFission/aev', 1, 'C', '1', '0', 'appTool/groupFission/aev', '#', 'admin', '2020-12-31 20:20:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2112, '查询聊天关系映射列表', 2080, 1, '', NULL, 1, 'F', '0', '0', 'chat:mapping:list', '#', 'admin', '2021-02-21 23:16:22', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2113, '按客户查询关系映射列表', 2080, 2, '', NULL, 1, 'F', '0', '0', 'chat:mapping:listByCustomer', '#', 'admin', '2021-02-21 23:17:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2114, '导出聊天关系映射列表', 2080, 3, '', NULL, 1, 'F', '0', '0', 'chat:mapping:export', '#', 'admin', '2021-02-21 23:17:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2115, '获取聊天关系映射详细信息', 2080, 4, '', NULL, 1, 'F', '0', '0', 'chat:mapping:query', '#', 'admin', '2021-02-21 23:18:11', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2116, '新增聊天关系映射', 2080, 5, '', NULL, 1, 'F', '0', '0', 'chat:mapping:add', '#', 'admin', '2021-02-21 23:18:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2117, '修改聊天关系映射', 2080, 6, '', NULL, 1, 'F', '0', '0', 'chat:mapping:edit', '#', 'admin', '2021-02-21 23:18:50', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2118, '删除聊天关系映射', 2080, 7, '', NULL, 1, 'F', '0', '0', 'chat:mapping:remove', '#', 'admin', '2021-02-21 23:19:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2119, '群发消息结果列表', 2083, 1, '', NULL, 1, 'F', '0', '0', 'customerMessagePush:push:pushResults', '#', 'admin', '2021-02-21 23:19:21', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2120, '同步群发发送结果', 2083, 2, '', NULL, 1, 'F', '0', '0', 'customerMessagePush:push:asyncResult', '#', 'admin', '2021-02-21 23:19:49', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2121, '获取单聊会话数据', 2080, 8, '', NULL, 1, 'F', '0', '0', 'conversationArchive:chatContact:list', '#', 'admin', '2021-02-21 23:20:09', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2122, '获取群聊会话数据', 2080, 9, '', NULL, 1, 'F', '0', '0', 'conversationArchive:chatRoomContact:list', '#', 'admin', '2021-02-21 23:20:35', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2123, '获取全局会话数据', 2080, 10, '', NULL, 1, 'F', '0', '0', 'conversationArchive:chatAllContact:list', '#', 'admin', '2021-02-21 23:20:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2124, '查询敏感行为列表', 2081, 1, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveact:list', '#', 'WeCome', '2021-02-22 11:48:41', 'admin', '2021-02-22 15:13:39', '');
INSERT INTO `sys_menu` VALUES (2125, '获取敏感行为详细信息', 2081, 2, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveact:query', '#', 'admin', '2021-02-22 11:50:06', 'admin', '2021-02-22 15:13:52', '');
INSERT INTO `sys_menu` VALUES (2126, '新增敏感行为设置', 2081, 3, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveact:add', '#', 'admin', '2021-02-22 11:50:28', 'admin', '2021-02-22 15:14:07', '');
INSERT INTO `sys_menu` VALUES (2127, '修改敏感词设置', 2081, 4, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveact:edit', '#', 'admin', '2021-02-22 11:50:59', 'admin', '2021-02-22 15:14:21', '');
INSERT INTO `sys_menu` VALUES (2128, '删除敏感词设置', 2081, 5, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveact:remove', '#', 'admin', '2021-02-22 11:51:41', 'admin', '2021-02-22 15:14:37', '');
INSERT INTO `sys_menu` VALUES (2129, '敏感词命中查询', 2081, 6, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveacthit:list', '#', 'admin', '2021-02-22 11:52:04', 'admin', '2021-02-22 15:15:03', '');
INSERT INTO `sys_menu` VALUES (2130, '导出敏感行为记录', 2081, 7, '', NULL, 1, 'F', '0', '0', 'wecom:sensitiveacthit:export', '#', 'admin', '2021-02-22 15:12:04', 'admin', '2021-02-22 15:15:14', '');
INSERT INTO `sys_menu` VALUES (2131, '查询敏感词设置列表', 2081, 8, '', NULL, 1, 'F', '0', '0', 'wecom:sensitive:list', '#', 'admin', '2021-02-22 15:16:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2132, '获取敏感词设置详细信息', 2081, 9, '', NULL, 1, 'F', '0', '0', 'wecom:sensitive:query', '#', 'admin', '2021-02-22 15:16:32', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2133, '新增敏感词设置', 2081, 10, '', NULL, 1, 'F', '0', '0', 'wecom:sensitive:add', '#', 'admin', '2021-02-22 15:16:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2134, '修改敏感词设置sensitive', 2081, 11, '', NULL, 1, 'F', '0', '0', 'wecom:sensitive:edit', '#', 'admin', '2021-02-22 15:17:27', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2135, '删除敏感词设置sensitive', 2081, 12, '', NULL, 1, 'F', '0', '0', 'wecom:sensitive:remove', '#', 'admin', '2021-02-22 15:17:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2136, '敏感词命中查询sensitivehit', 2081, 13, '', NULL, 1, 'F', '0', '0', 'wecom:sensitivehit:list', '#', 'admin', '2021-02-22 15:18:12', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2137, '查询员工活码列表', 2053, 1, '', NULL, 1, 'F', '0', '0', 'wecom:code:list', '#', 'admin', '2021-02-22 15:34:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2138, '获取员工活码详细信息', 2053, 2, '', NULL, 1, 'F', '0', '0', 'wecom:code:query', '#', 'admin', '2021-02-22 15:35:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2139, '新增员工活码', 2053, 3, '', NULL, 1, 'F', '0', '0', 'wecom:code:add', '#', 'admin', '2021-02-22 15:35:29', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2140, '批量新增员工活码', 2053, 4, '', NULL, 1, 'F', '0', '0', 'wecom:code:batchAdd', '#', 'admin', '2021-02-22 15:35:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2141, '修改员工活码', 2053, 5, '', NULL, 1, 'F', '0', '0', 'wecom:code:edit', '#', 'admin', '2021-02-22 15:36:17', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2142, '删除员工活码', 2053, 6, '', NULL, 1, 'F', '0', '0', 'wecom:code:remove', '#', 'admin', '2021-02-22 15:36:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2143, '获取员工二维码', 2053, 7, '', NULL, 1, 'F', '0', '0', 'wecom:code:qrcode', '#', 'admin', '2021-02-22 15:36:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2144, '员工活码批量下载', 2053, 8, '', NULL, 1, 'F', '0', '0', 'wecom:code:downloadBatch', '#', 'admin', '2021-02-22 15:37:18', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2145, '员工活码下载', 2053, 9, '', NULL, 1, 'F', '0', '0', 'wecom:code:download', '#', 'admin', '2021-02-22 15:37:40', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2146, '成员添加客户统计', 2053, 10, '', NULL, 1, 'F', '0', '0', 'wecom:code:getUserAddCustomerStat', '#', 'admin', '2021-02-22 15:37:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2147, '查询客户群活码列表', 2056, 1, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:list', '#', 'admin', '2021-02-22 15:41:20', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2148, '批量下载群活码', 2056, 2, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:downloadBatch', '#', 'admin', '2021-02-22 15:41:37', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2149, '群活码下载', 2056, 3, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:download', '#', 'admin', '2021-02-22 15:41:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2150, '获取客户群活码详细信息', 2056, 4, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:query', '#', 'admin', '2021-02-22 15:42:19', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2151, '新增客户群活码', 2056, 5, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:add', '#', 'admin', '2021-02-22 15:42:43', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2152, '修改客户群活码', 2056, 6, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:edit', '#', 'admin', '2021-02-22 15:43:06', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2153, '删除客户群活码', 2056, 7, '', NULL, 1, 'F', '0', '0', 'wecom:groupCode:remove', '#', 'admin', '2021-02-22 15:43:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2154, '查询欢迎语模板列表', 2060, 1, '', NULL, 1, 'F', '0', '0', 'wecom:tlp:list', '#', 'admin', '2021-02-22 15:43:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2155, '获取欢迎语模板详细信息', 2060, 2, '', NULL, 1, 'F', '0', '0', 'wecom:tlp:query', '#', 'admin', '2021-02-22 15:44:13', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2156, '新增欢迎语模板', 2060, 3, '', NULL, 1, 'F', '0', '0', 'wecom:tlp:add', '#', 'admin', '2021-02-22 15:44:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2157, '修改欢迎语模板', 2060, 4, '', NULL, 1, 'F', '0', '0', 'wecom:tlp:edit', '#', 'admin', '2021-02-22 15:44:46', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2158, '删除欢迎语模板', 2060, 5, '', NULL, 1, 'F', '0', '0', 'wecom:tlp:remove', '#', 'admin', '2021-02-22 15:45:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2159, '员工活码详情', 2052, 11, 'staffDetail', 'drainageCode/staff/detail', 1, 'C', '1', '0', 'drainageCode:staff:detail', '#', 'admin', '2021-02-22 16:32:05', 'admin', '2021-02-22 23:12:27', '');
INSERT INTO `sys_menu` VALUES (2160, '新建员工活码', 2052, 12, 'staffAdd', 'drainageCode/staff/add', 1, 'C', '1', '0', 'drainageCode:staff:add', '#', 'admin', '2021-02-22 16:38:11', 'admin', '2021-02-22 23:18:46', '');
INSERT INTO `sys_menu` VALUES (2161, '群发侧边栏列表', 2091, 1, '', NULL, 1, 'F', '0', '0', 'chat:side:list', '#', 'admin', '2021-02-22 16:44:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2162, '更新侧边栏信息', 2091, 2, '', NULL, 1, 'F', '0', '0', 'chat:side:edit', '#', 'admin', '2021-02-22 16:44:53', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2163, '新增/修改欢迎语', 2052, 81, 'welcomeAdd', 'drainageCode/welcome/add', 1, 'C', '1', '0', 'drainageCode:welcome:add', '#', 'admin', '2021-02-22 23:23:40', 'admin', '2021-02-22 23:58:50', '');
INSERT INTO `sys_menu` VALUES (2164, '新增客户群活码', 2052, 50, 'groupAdd', 'drainageCode/group/add', 1, 'C', '1', '0', 'drainageCode:group:add', '#', 'admin', '2021-02-23 00:11:41', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2165, '客户群活码信息', 2052, 60, 'customerGroupDetail', 'drainageCode/group/detail', 1, 'C', '1', '0', 'drainageCode:group:detail', '#', 'admin', '2021-02-23 00:14:50', 'admin', '2021-02-23 00:20:16', '');
INSERT INTO `sys_menu` VALUES (2166, '客户群信息', 2052, 70, 'groupBaseInfo', 'drainageCode/group/baseInfo', 1, 'C', '1', '0', 'drainageCode:group:baseInfo', '#', 'admin', '2021-02-23 00:17:18', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2173, '全能营销', 0, 50, 'application', NULL, 1, 'M', '0', '0', '', 'app', 'admin', '2021-03-16 23:16:33', 'admin', '2021-05-23 23:11:14', '');
INSERT INTO `sys_menu` VALUES (2174, '任务宝', 2173, 1, 'taskGroup', 'application/taskGroup', 1, 'C', '0', '0', '', '#', 'admin', '2021-03-16 23:19:15', 'admin', '2021-07-14 14:34:47', '');
INSERT INTO `sys_menu` VALUES (2175, '新增任务', 2173, 3, 'addTask', 'application/taskDetail/addTask', 1, 'C', '1', '0', NULL, '#', 'admin', '2021-03-16 23:19:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2176, '编辑任务', 2173, 4, 'editTask', 'application/taskDetail/editTask', 1, 'C', '1', '0', NULL, '#', 'admin', '2021-03-16 23:20:23', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2177, '任务详情', 2173, 5, 'taskDetail', 'application/taskDetail', 1, 'C', '1', '0', NULL, '#', 'admin', '2021-03-16 23:20:47', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2181, '群裂变', 2173, 2, 'groupFission', 'application/groupFission', 1, 'C', '0', '0', '', '#', 'admin', '2021-04-25 15:48:53', 'admin', '2021-07-14 14:35:52', '');
INSERT INTO `sys_menu` VALUES (2182, '新增群裂变', 2173, 6, 'addFission', 'application/fissionDetail/addFission', 1, 'C', '1', '0', '', '#', 'admin', '2021-04-25 15:52:15', 'admin', '2021-07-14 14:35:45', '');
INSERT INTO `sys_menu` VALUES (2183, '裂变详情', 2173, 7, 'fissionDetail', 'application/fissionDetail', 1, 'C', '1', '0', NULL, '#', 'admin', '2021-04-25 15:53:05', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2184, '企业风控', 0, 60, 'riskControl', NULL, 1, 'M', '0', '0', '', 'validCode', 'admin', '2021-05-25 13:45:45', 'admin', '2021-05-25 14:43:30', '');
INSERT INTO `sys_menu` VALUES (2185, '企业管理', 0, 65, 'enterpriseManage', NULL, 1, 'M', '0', '0', '', 'cascader', 'admin', '2021-05-25 13:50:20', 'admin', '2021-07-15 17:19:05', '');
INSERT INTO `sys_menu` VALUES (2186, '客情维系', 0, 30, 'customerMaintain', NULL, 1, 'M', '0', '0', '', 'wechat', 'admin', '2021-05-25 13:55:57', 'admin', '2021-07-14 14:28:43', '');
INSERT INTO `sys_menu` VALUES (2187, '公海客户', 2197, 75, 'index', 'drainageCode/highSeas/index', 1, 'C', '0', '0', '', '#', 'admin', '2021-08-20 14:20:37', 'admin_prod', '2021-12-26 16:29:22', '');
INSERT INTO `sys_menu` VALUES (2189, '公海统计', 2197, 76, 'statistics', 'drainageCode/highSeas/statistics', 1, 'C', '0', '0', 'highSeas:statistics', '#', 'admin_prod', '2021-11-21 15:32:40', 'admin_prod', '2021-12-26 16:29:38', '');
INSERT INTO `sys_menu` VALUES (2190, '员工动态', 2198, 45, 'circle', 'friendCircle/index', 1, 'C', '0', '0', 'friendCircle:index', 'build', 'admin_prod', '2021-11-24 17:48:12', 'admin_prod', '2021-12-26 16:37:17', '');
INSERT INTO `sys_menu` VALUES (2191, '企业动态', 2198, 44, 'enterprise', 'friendCircle/enterprise', 1, 'C', '0', '0', 'friendCircle:enterprise', 'dict', 'admin_prod', '2021-11-24 17:57:13', 'admin_prod', '2021-12-26 16:38:39', '');
INSERT INTO `sys_menu` VALUES (2192, '发表动态', 2198, 43, 'publish', 'friendCircle/publish', 1, 'C', '1', '0', 'friendCircle:enterprise:publish', '#', 'admin_prod', '2021-11-30 21:44:21', 'admin_prod', '2021-12-26 16:37:32', '');
INSERT INTO `sys_menu` VALUES (2197, '客户公海', 2052, 81, 'highSeas', NULL, 1, 'M', '0', '0', '', '#', 'admin_prod', '2021-12-26 16:23:43', 'admin_prod', '2021-12-26 16:29:28', '');
INSERT INTO `sys_menu` VALUES (2198, '客户朋友圈', 2186, 45, 'friendCircle', NULL, 1, 'M', '0', '0', '', 'date-range', 'admin_prod', '2021-12-26 16:34:18', 'admin_prod', '2021-12-26 16:38:28', '');
INSERT INTO `sys_menu` VALUES (2199, '微信客服', 2052, 82, 'customerService', NULL, 1, 'M', '0', '0', NULL, 'wechat', 'admin_prod', '2022-01-09 21:06:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2200, '客服管理', 2199, 1, 'index', 'customerService/customerServiceManage/index.vue', 1, 'C', '0', '0', 'service:manage:index', 'nested', 'admin_prod', '2022-01-09 21:08:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2201, '运营中心', 0, 5, 'operateCenter', NULL, 1, 'M', '0', '0', NULL, '#', 'admin_prod', '2022-01-09 21:37:26', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2202, '首页', 2201, 10, 'index', NULL, 1, 'M', '0', '0', NULL, '#', 'admin_prod', '2022-01-09 21:38:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2203, '数据分析', 2202, 10, 'dataAnalysis', 'operateCenter/index/dataAnalysis', 1, 'C', '0', '0', '/operateCenter/dataAnalysis', '#', 'admin_prod', '2022-01-09 21:44:34', 'admin_prod', '2022-01-09 22:23:37', '');
INSERT INTO `sys_menu` VALUES (2204, '运营分析', 2201, 20, 'operateAnalysis', NULL, 1, 'M', '0', '0', '', '#', 'admin_prod', '2022-01-09 21:46:35', 'admin_prod', '2022-01-09 21:46:51', '');
INSERT INTO `sys_menu` VALUES (2205, '客户分析', 2204, 10, 'customerAnalysis', 'operateCenter/operateAnalysis/customerAnalysis', 1, 'C', '0', '0', '/operateCenter/operateAnalysis/customerAnalysis', '#', 'admin_prod', '2022-01-09 21:50:04', 'admin_prod', '2022-01-09 21:57:22', '');
INSERT INTO `sys_menu` VALUES (2206, '客群分析', 2204, 20, 'groupAnalysis', 'operateCenter/operateAnalysis/groupAnalysis', 1, 'C', '0', '0', '/operateCenter/operateAnalysis/groupAnalysis', '#', 'admin_prod', '2022-01-09 21:51:46', 'admin_prod', '2022-01-09 21:57:33', '');
INSERT INTO `sys_menu` VALUES (2207, '会话分析', 2204, 30, 'conversationAnalysis', 'operateCenter/operateAnalysis/conversationAnalysis', 1, 'C', '0', '0', '/operateCenter/operateAnalysis/conversationAnalysi', '#', 'admin_prod', '2022-01-09 21:53:47', 'admin_prod', '2022-01-09 22:05:10', '');
INSERT INTO `sys_menu` VALUES (2208, '场景管理', 2199, 2, 'sceneManage', 'customerService/sceneManage/index.vue', 1, 'C', '0', '0', 'service:scene:index', 'build', 'admin_prod', '2022-01-10 17:06:42', 'admin_prod', '2022-01-10 17:06:50', '');
COMMIT;

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice` (
  `notice_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50) NOT NULL COMMENT '公告标题',
  `notice_type` char(1) NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` varchar(2000) DEFAULT NULL COMMENT '公告内容',
  `status` char(1) DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='通知公告表';

-- ----------------------------
-- Records of sys_notice
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log` (
  `oper_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50) DEFAULT '' COMMENT '模块标题',
  `business_type` int(11) DEFAULT '0' COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(100) DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10) DEFAULT '' COMMENT '请求方式',
  `operator_type` int(11) DEFAULT '0' COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50) DEFAULT '' COMMENT '操作人员',
  `dept_name` varchar(50) DEFAULT '' COMMENT '部门名称',
  `oper_url` varchar(255) DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(50) DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255) DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000) DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000) DEFAULT '' COMMENT '返回参数',
  `status` int(11) DEFAULT '0' COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(2000) DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime DEFAULT NULL COMMENT '操作时间',
  PRIMARY KEY (`oper_id`)
) ENGINE=InnoDB AUTO_INCREMENT=77261 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='操作日志记录';

-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post` (
  `post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64) NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50) NOT NULL COMMENT '岗位名称',
  `post_sort` int(11) NOT NULL COMMENT '显示顺序',
  `status` char(1) NOT NULL COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='岗位信息表';

-- ----------------------------
-- Records of sys_post
-- ----------------------------
BEGIN;
INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '');
COMMIT;

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
  `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) NOT NULL COMMENT '角色权限字符串',
  `role_sort` int(11) NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `status` char(1) NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='角色信息表';

-- ----------------------------
-- Records of sys_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '超级管理员');
INSERT INTO `sys_role` VALUES (2, '企业微信用户', 'WeCome', 2, '2', '0', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2021-07-29 18:20:10', '企业微信用户');
INSERT INTO `sys_role` VALUES (3, '企业微信体验账号', 'wecome_experience', 0, '1', '0', '0', 'admin', '2021-02-13 20:53:40', 'admin', '2021-07-17 22:35:44', NULL);
INSERT INTO `sys_role` VALUES (4, '试用角色', 'try_out', 0, '1', '0', '0', 'admin', '2021-02-22 14:54:16', 'admin', '2021-04-20 09:13:01', NULL);
INSERT INTO `sys_role` VALUES (5, '企业账户', 'CROP_ADMIN_ROLE', 0, '1', '0', '0', 'admin', '2021-04-07 22:31:12', 'admin', '2021-04-07 22:35:29', '企业级账号，相当于一个租户');
COMMIT;

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `dept_id` bigint(20) NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`,`dept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='角色和部门关联表';

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
BEGIN;
INSERT INTO `sys_role_dept` VALUES (2, 100);
INSERT INTO `sys_role_dept` VALUES (2, 101);
INSERT INTO `sys_role_dept` VALUES (2, 105);
COMMIT;

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`,`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='角色和菜单关联表';

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
BEGIN;
INSERT INTO `sys_role_menu` VALUES (2, 2001);
INSERT INTO `sys_role_menu` VALUES (2, 2002);
INSERT INTO `sys_role_menu` VALUES (2, 2003);
INSERT INTO `sys_role_menu` VALUES (2, 2004);
INSERT INTO `sys_role_menu` VALUES (2, 2005);
INSERT INTO `sys_role_menu` VALUES (2, 2006);
INSERT INTO `sys_role_menu` VALUES (2, 2007);
INSERT INTO `sys_role_menu` VALUES (2, 2008);
INSERT INTO `sys_role_menu` VALUES (2, 2009);
INSERT INTO `sys_role_menu` VALUES (2, 2012);
INSERT INTO `sys_role_menu` VALUES (2, 2014);
INSERT INTO `sys_role_menu` VALUES (2, 2015);
INSERT INTO `sys_role_menu` VALUES (2, 2016);
INSERT INTO `sys_role_menu` VALUES (2, 2018);
INSERT INTO `sys_role_menu` VALUES (2, 2020);
INSERT INTO `sys_role_menu` VALUES (2, 2021);
INSERT INTO `sys_role_menu` VALUES (2, 2022);
INSERT INTO `sys_role_menu` VALUES (2, 2023);
INSERT INTO `sys_role_menu` VALUES (2, 2024);
INSERT INTO `sys_role_menu` VALUES (2, 2025);
INSERT INTO `sys_role_menu` VALUES (2, 2026);
INSERT INTO `sys_role_menu` VALUES (2, 2027);
INSERT INTO `sys_role_menu` VALUES (2, 2028);
INSERT INTO `sys_role_menu` VALUES (2, 2029);
INSERT INTO `sys_role_menu` VALUES (2, 2030);
INSERT INTO `sys_role_menu` VALUES (2, 2031);
INSERT INTO `sys_role_menu` VALUES (2, 2032);
INSERT INTO `sys_role_menu` VALUES (2, 2034);
INSERT INTO `sys_role_menu` VALUES (2, 2035);
INSERT INTO `sys_role_menu` VALUES (2, 2036);
INSERT INTO `sys_role_menu` VALUES (2, 2037);
INSERT INTO `sys_role_menu` VALUES (2, 2038);
INSERT INTO `sys_role_menu` VALUES (2, 2048);
INSERT INTO `sys_role_menu` VALUES (2, 2049);
INSERT INTO `sys_role_menu` VALUES (2, 2050);
INSERT INTO `sys_role_menu` VALUES (2, 2051);
INSERT INTO `sys_role_menu` VALUES (2, 2052);
INSERT INTO `sys_role_menu` VALUES (2, 2053);
INSERT INTO `sys_role_menu` VALUES (2, 2056);
INSERT INTO `sys_role_menu` VALUES (2, 2060);
INSERT INTO `sys_role_menu` VALUES (2, 2062);
INSERT INTO `sys_role_menu` VALUES (2, 2063);
INSERT INTO `sys_role_menu` VALUES (2, 2064);
INSERT INTO `sys_role_menu` VALUES (2, 2065);
INSERT INTO `sys_role_menu` VALUES (2, 2066);
INSERT INTO `sys_role_menu` VALUES (2, 2067);
INSERT INTO `sys_role_menu` VALUES (2, 2068);
INSERT INTO `sys_role_menu` VALUES (2, 2069);
INSERT INTO `sys_role_menu` VALUES (2, 2070);
INSERT INTO `sys_role_menu` VALUES (2, 2071);
INSERT INTO `sys_role_menu` VALUES (2, 2072);
INSERT INTO `sys_role_menu` VALUES (2, 2073);
INSERT INTO `sys_role_menu` VALUES (2, 2074);
INSERT INTO `sys_role_menu` VALUES (2, 2075);
INSERT INTO `sys_role_menu` VALUES (2, 2076);
INSERT INTO `sys_role_menu` VALUES (2, 2077);
INSERT INTO `sys_role_menu` VALUES (2, 2078);
INSERT INTO `sys_role_menu` VALUES (2, 2082);
INSERT INTO `sys_role_menu` VALUES (2, 2083);
INSERT INTO `sys_role_menu` VALUES (2, 2084);
INSERT INTO `sys_role_menu` VALUES (2, 2085);
INSERT INTO `sys_role_menu` VALUES (2, 2086);
INSERT INTO `sys_role_menu` VALUES (2, 2087);
INSERT INTO `sys_role_menu` VALUES (2, 2089);
INSERT INTO `sys_role_menu` VALUES (2, 2100);
INSERT INTO `sys_role_menu` VALUES (2, 2101);
INSERT INTO `sys_role_menu` VALUES (2, 2102);
INSERT INTO `sys_role_menu` VALUES (2, 2103);
INSERT INTO `sys_role_menu` VALUES (2, 2104);
INSERT INTO `sys_role_menu` VALUES (2, 2105);
INSERT INTO `sys_role_menu` VALUES (2, 2106);
INSERT INTO `sys_role_menu` VALUES (2, 2107);
INSERT INTO `sys_role_menu` VALUES (2, 2108);
INSERT INTO `sys_role_menu` VALUES (2, 2109);
INSERT INTO `sys_role_menu` VALUES (2, 2137);
INSERT INTO `sys_role_menu` VALUES (2, 2138);
INSERT INTO `sys_role_menu` VALUES (2, 2139);
INSERT INTO `sys_role_menu` VALUES (2, 2140);
INSERT INTO `sys_role_menu` VALUES (2, 2141);
INSERT INTO `sys_role_menu` VALUES (2, 2142);
INSERT INTO `sys_role_menu` VALUES (2, 2143);
INSERT INTO `sys_role_menu` VALUES (2, 2144);
INSERT INTO `sys_role_menu` VALUES (2, 2145);
INSERT INTO `sys_role_menu` VALUES (2, 2146);
INSERT INTO `sys_role_menu` VALUES (2, 2147);
INSERT INTO `sys_role_menu` VALUES (2, 2148);
INSERT INTO `sys_role_menu` VALUES (2, 2149);
INSERT INTO `sys_role_menu` VALUES (2, 2150);
INSERT INTO `sys_role_menu` VALUES (2, 2151);
INSERT INTO `sys_role_menu` VALUES (2, 2152);
INSERT INTO `sys_role_menu` VALUES (2, 2153);
INSERT INTO `sys_role_menu` VALUES (2, 2154);
INSERT INTO `sys_role_menu` VALUES (2, 2155);
INSERT INTO `sys_role_menu` VALUES (2, 2156);
INSERT INTO `sys_role_menu` VALUES (2, 2157);
INSERT INTO `sys_role_menu` VALUES (2, 2158);
INSERT INTO `sys_role_menu` VALUES (2, 2159);
INSERT INTO `sys_role_menu` VALUES (2, 2160);
INSERT INTO `sys_role_menu` VALUES (2, 2163);
INSERT INTO `sys_role_menu` VALUES (2, 2164);
INSERT INTO `sys_role_menu` VALUES (2, 2165);
INSERT INTO `sys_role_menu` VALUES (2, 2166);
INSERT INTO `sys_role_menu` VALUES (2, 2173);
INSERT INTO `sys_role_menu` VALUES (2, 2174);
INSERT INTO `sys_role_menu` VALUES (2, 2175);
INSERT INTO `sys_role_menu` VALUES (2, 2176);
INSERT INTO `sys_role_menu` VALUES (2, 2177);
INSERT INTO `sys_role_menu` VALUES (2, 2181);
INSERT INTO `sys_role_menu` VALUES (2, 2182);
INSERT INTO `sys_role_menu` VALUES (2, 2183);
INSERT INTO `sys_role_menu` VALUES (2, 2185);
INSERT INTO `sys_role_menu` VALUES (2, 2186);
INSERT INTO `sys_role_menu` VALUES (3, 2001);
INSERT INTO `sys_role_menu` VALUES (3, 2002);
INSERT INTO `sys_role_menu` VALUES (3, 2003);
INSERT INTO `sys_role_menu` VALUES (3, 2004);
INSERT INTO `sys_role_menu` VALUES (3, 2005);
INSERT INTO `sys_role_menu` VALUES (3, 2006);
INSERT INTO `sys_role_menu` VALUES (3, 2007);
INSERT INTO `sys_role_menu` VALUES (3, 2012);
INSERT INTO `sys_role_menu` VALUES (3, 2014);
INSERT INTO `sys_role_menu` VALUES (3, 2015);
INSERT INTO `sys_role_menu` VALUES (3, 2016);
INSERT INTO `sys_role_menu` VALUES (3, 2017);
INSERT INTO `sys_role_menu` VALUES (3, 2018);
INSERT INTO `sys_role_menu` VALUES (3, 2020);
INSERT INTO `sys_role_menu` VALUES (3, 2021);
INSERT INTO `sys_role_menu` VALUES (3, 2022);
INSERT INTO `sys_role_menu` VALUES (3, 2023);
INSERT INTO `sys_role_menu` VALUES (3, 2024);
INSERT INTO `sys_role_menu` VALUES (3, 2025);
INSERT INTO `sys_role_menu` VALUES (3, 2026);
INSERT INTO `sys_role_menu` VALUES (3, 2027);
INSERT INTO `sys_role_menu` VALUES (3, 2028);
INSERT INTO `sys_role_menu` VALUES (3, 2029);
INSERT INTO `sys_role_menu` VALUES (3, 2030);
INSERT INTO `sys_role_menu` VALUES (3, 2048);
INSERT INTO `sys_role_menu` VALUES (3, 2049);
INSERT INTO `sys_role_menu` VALUES (3, 2050);
INSERT INTO `sys_role_menu` VALUES (3, 2051);
INSERT INTO `sys_role_menu` VALUES (3, 2052);
INSERT INTO `sys_role_menu` VALUES (3, 2053);
INSERT INTO `sys_role_menu` VALUES (3, 2056);
INSERT INTO `sys_role_menu` VALUES (3, 2060);
INSERT INTO `sys_role_menu` VALUES (3, 2062);
INSERT INTO `sys_role_menu` VALUES (3, 2063);
INSERT INTO `sys_role_menu` VALUES (3, 2064);
INSERT INTO `sys_role_menu` VALUES (3, 2065);
INSERT INTO `sys_role_menu` VALUES (3, 2066);
INSERT INTO `sys_role_menu` VALUES (3, 2067);
INSERT INTO `sys_role_menu` VALUES (3, 2068);
INSERT INTO `sys_role_menu` VALUES (3, 2069);
INSERT INTO `sys_role_menu` VALUES (3, 2070);
INSERT INTO `sys_role_menu` VALUES (3, 2071);
INSERT INTO `sys_role_menu` VALUES (3, 2072);
INSERT INTO `sys_role_menu` VALUES (3, 2073);
INSERT INTO `sys_role_menu` VALUES (3, 2074);
INSERT INTO `sys_role_menu` VALUES (3, 2075);
INSERT INTO `sys_role_menu` VALUES (3, 2076);
INSERT INTO `sys_role_menu` VALUES (3, 2077);
INSERT INTO `sys_role_menu` VALUES (3, 2078);
INSERT INTO `sys_role_menu` VALUES (3, 2079);
INSERT INTO `sys_role_menu` VALUES (3, 2080);
INSERT INTO `sys_role_menu` VALUES (3, 2081);
INSERT INTO `sys_role_menu` VALUES (3, 2082);
INSERT INTO `sys_role_menu` VALUES (3, 2083);
INSERT INTO `sys_role_menu` VALUES (3, 2084);
INSERT INTO `sys_role_menu` VALUES (3, 2085);
INSERT INTO `sys_role_menu` VALUES (3, 2086);
INSERT INTO `sys_role_menu` VALUES (3, 2087);
INSERT INTO `sys_role_menu` VALUES (3, 2089);
INSERT INTO `sys_role_menu` VALUES (3, 2090);
INSERT INTO `sys_role_menu` VALUES (3, 2091);
INSERT INTO `sys_role_menu` VALUES (3, 2092);
INSERT INTO `sys_role_menu` VALUES (3, 2093);
INSERT INTO `sys_role_menu` VALUES (3, 2094);
INSERT INTO `sys_role_menu` VALUES (3, 2095);
INSERT INTO `sys_role_menu` VALUES (3, 2096);
INSERT INTO `sys_role_menu` VALUES (3, 2097);
INSERT INTO `sys_role_menu` VALUES (3, 2098);
INSERT INTO `sys_role_menu` VALUES (3, 2099);
INSERT INTO `sys_role_menu` VALUES (3, 2100);
INSERT INTO `sys_role_menu` VALUES (3, 2101);
INSERT INTO `sys_role_menu` VALUES (3, 2102);
INSERT INTO `sys_role_menu` VALUES (3, 2103);
INSERT INTO `sys_role_menu` VALUES (3, 2104);
INSERT INTO `sys_role_menu` VALUES (3, 2105);
INSERT INTO `sys_role_menu` VALUES (3, 2106);
INSERT INTO `sys_role_menu` VALUES (3, 2107);
INSERT INTO `sys_role_menu` VALUES (3, 2108);
INSERT INTO `sys_role_menu` VALUES (3, 2109);
INSERT INTO `sys_role_menu` VALUES (3, 2110);
INSERT INTO `sys_role_menu` VALUES (3, 2111);
INSERT INTO `sys_role_menu` VALUES (3, 2112);
INSERT INTO `sys_role_menu` VALUES (3, 2113);
INSERT INTO `sys_role_menu` VALUES (3, 2114);
INSERT INTO `sys_role_menu` VALUES (3, 2115);
INSERT INTO `sys_role_menu` VALUES (3, 2116);
INSERT INTO `sys_role_menu` VALUES (3, 2117);
INSERT INTO `sys_role_menu` VALUES (3, 2118);
INSERT INTO `sys_role_menu` VALUES (3, 2121);
INSERT INTO `sys_role_menu` VALUES (3, 2122);
INSERT INTO `sys_role_menu` VALUES (3, 2123);
INSERT INTO `sys_role_menu` VALUES (3, 2124);
INSERT INTO `sys_role_menu` VALUES (3, 2125);
INSERT INTO `sys_role_menu` VALUES (3, 2126);
INSERT INTO `sys_role_menu` VALUES (3, 2127);
INSERT INTO `sys_role_menu` VALUES (3, 2128);
INSERT INTO `sys_role_menu` VALUES (3, 2129);
INSERT INTO `sys_role_menu` VALUES (3, 2130);
INSERT INTO `sys_role_menu` VALUES (3, 2131);
INSERT INTO `sys_role_menu` VALUES (3, 2132);
INSERT INTO `sys_role_menu` VALUES (3, 2133);
INSERT INTO `sys_role_menu` VALUES (3, 2134);
INSERT INTO `sys_role_menu` VALUES (3, 2135);
INSERT INTO `sys_role_menu` VALUES (3, 2136);
INSERT INTO `sys_role_menu` VALUES (3, 2137);
INSERT INTO `sys_role_menu` VALUES (3, 2138);
INSERT INTO `sys_role_menu` VALUES (3, 2139);
INSERT INTO `sys_role_menu` VALUES (3, 2140);
INSERT INTO `sys_role_menu` VALUES (3, 2141);
INSERT INTO `sys_role_menu` VALUES (3, 2142);
INSERT INTO `sys_role_menu` VALUES (3, 2143);
INSERT INTO `sys_role_menu` VALUES (3, 2144);
INSERT INTO `sys_role_menu` VALUES (3, 2145);
INSERT INTO `sys_role_menu` VALUES (3, 2146);
INSERT INTO `sys_role_menu` VALUES (3, 2147);
INSERT INTO `sys_role_menu` VALUES (3, 2148);
INSERT INTO `sys_role_menu` VALUES (3, 2149);
INSERT INTO `sys_role_menu` VALUES (3, 2150);
INSERT INTO `sys_role_menu` VALUES (3, 2151);
INSERT INTO `sys_role_menu` VALUES (3, 2152);
INSERT INTO `sys_role_menu` VALUES (3, 2153);
INSERT INTO `sys_role_menu` VALUES (3, 2154);
INSERT INTO `sys_role_menu` VALUES (3, 2155);
INSERT INTO `sys_role_menu` VALUES (3, 2156);
INSERT INTO `sys_role_menu` VALUES (3, 2157);
INSERT INTO `sys_role_menu` VALUES (3, 2158);
INSERT INTO `sys_role_menu` VALUES (3, 2159);
INSERT INTO `sys_role_menu` VALUES (3, 2160);
INSERT INTO `sys_role_menu` VALUES (3, 2161);
INSERT INTO `sys_role_menu` VALUES (3, 2162);
INSERT INTO `sys_role_menu` VALUES (3, 2163);
INSERT INTO `sys_role_menu` VALUES (3, 2164);
INSERT INTO `sys_role_menu` VALUES (3, 2165);
INSERT INTO `sys_role_menu` VALUES (3, 2166);
INSERT INTO `sys_role_menu` VALUES (3, 2173);
INSERT INTO `sys_role_menu` VALUES (3, 2174);
INSERT INTO `sys_role_menu` VALUES (3, 2175);
INSERT INTO `sys_role_menu` VALUES (3, 2176);
INSERT INTO `sys_role_menu` VALUES (3, 2177);
INSERT INTO `sys_role_menu` VALUES (3, 2181);
INSERT INTO `sys_role_menu` VALUES (3, 2182);
INSERT INTO `sys_role_menu` VALUES (3, 2183);
INSERT INTO `sys_role_menu` VALUES (3, 2184);
INSERT INTO `sys_role_menu` VALUES (3, 2186);
INSERT INTO `sys_role_menu` VALUES (4, 2);
INSERT INTO `sys_role_menu` VALUES (4, 109);
INSERT INTO `sys_role_menu` VALUES (4, 110);
INSERT INTO `sys_role_menu` VALUES (4, 111);
INSERT INTO `sys_role_menu` VALUES (4, 112);
INSERT INTO `sys_role_menu` VALUES (4, 1046);
INSERT INTO `sys_role_menu` VALUES (4, 1047);
INSERT INTO `sys_role_menu` VALUES (4, 1048);
INSERT INTO `sys_role_menu` VALUES (4, 1049);
INSERT INTO `sys_role_menu` VALUES (4, 1050);
INSERT INTO `sys_role_menu` VALUES (4, 1051);
INSERT INTO `sys_role_menu` VALUES (4, 1052);
INSERT INTO `sys_role_menu` VALUES (4, 1053);
INSERT INTO `sys_role_menu` VALUES (4, 1054);
INSERT INTO `sys_role_menu` VALUES (4, 2001);
INSERT INTO `sys_role_menu` VALUES (4, 2002);
INSERT INTO `sys_role_menu` VALUES (4, 2003);
INSERT INTO `sys_role_menu` VALUES (4, 2004);
INSERT INTO `sys_role_menu` VALUES (4, 2005);
INSERT INTO `sys_role_menu` VALUES (4, 2006);
INSERT INTO `sys_role_menu` VALUES (4, 2007);
INSERT INTO `sys_role_menu` VALUES (4, 2012);
INSERT INTO `sys_role_menu` VALUES (4, 2013);
INSERT INTO `sys_role_menu` VALUES (4, 2014);
INSERT INTO `sys_role_menu` VALUES (4, 2015);
INSERT INTO `sys_role_menu` VALUES (4, 2016);
INSERT INTO `sys_role_menu` VALUES (4, 2017);
INSERT INTO `sys_role_menu` VALUES (4, 2018);
INSERT INTO `sys_role_menu` VALUES (4, 2019);
INSERT INTO `sys_role_menu` VALUES (4, 2020);
INSERT INTO `sys_role_menu` VALUES (4, 2021);
INSERT INTO `sys_role_menu` VALUES (4, 2022);
INSERT INTO `sys_role_menu` VALUES (4, 2023);
INSERT INTO `sys_role_menu` VALUES (4, 2024);
INSERT INTO `sys_role_menu` VALUES (4, 2025);
INSERT INTO `sys_role_menu` VALUES (4, 2026);
INSERT INTO `sys_role_menu` VALUES (4, 2027);
INSERT INTO `sys_role_menu` VALUES (4, 2028);
INSERT INTO `sys_role_menu` VALUES (4, 2029);
INSERT INTO `sys_role_menu` VALUES (4, 2030);
INSERT INTO `sys_role_menu` VALUES (4, 2048);
INSERT INTO `sys_role_menu` VALUES (4, 2049);
INSERT INTO `sys_role_menu` VALUES (4, 2050);
INSERT INTO `sys_role_menu` VALUES (4, 2051);
INSERT INTO `sys_role_menu` VALUES (4, 2052);
INSERT INTO `sys_role_menu` VALUES (4, 2053);
INSERT INTO `sys_role_menu` VALUES (4, 2056);
INSERT INTO `sys_role_menu` VALUES (4, 2060);
INSERT INTO `sys_role_menu` VALUES (4, 2062);
INSERT INTO `sys_role_menu` VALUES (4, 2063);
INSERT INTO `sys_role_menu` VALUES (4, 2064);
INSERT INTO `sys_role_menu` VALUES (4, 2065);
INSERT INTO `sys_role_menu` VALUES (4, 2066);
INSERT INTO `sys_role_menu` VALUES (4, 2067);
INSERT INTO `sys_role_menu` VALUES (4, 2068);
INSERT INTO `sys_role_menu` VALUES (4, 2069);
INSERT INTO `sys_role_menu` VALUES (4, 2070);
INSERT INTO `sys_role_menu` VALUES (4, 2071);
INSERT INTO `sys_role_menu` VALUES (4, 2072);
INSERT INTO `sys_role_menu` VALUES (4, 2073);
INSERT INTO `sys_role_menu` VALUES (4, 2074);
INSERT INTO `sys_role_menu` VALUES (4, 2075);
INSERT INTO `sys_role_menu` VALUES (4, 2076);
INSERT INTO `sys_role_menu` VALUES (4, 2077);
INSERT INTO `sys_role_menu` VALUES (4, 2078);
INSERT INTO `sys_role_menu` VALUES (4, 2079);
INSERT INTO `sys_role_menu` VALUES (4, 2080);
INSERT INTO `sys_role_menu` VALUES (4, 2081);
INSERT INTO `sys_role_menu` VALUES (4, 2082);
INSERT INTO `sys_role_menu` VALUES (4, 2083);
INSERT INTO `sys_role_menu` VALUES (4, 2084);
INSERT INTO `sys_role_menu` VALUES (4, 2085);
INSERT INTO `sys_role_menu` VALUES (4, 2086);
INSERT INTO `sys_role_menu` VALUES (4, 2087);
INSERT INTO `sys_role_menu` VALUES (4, 2089);
INSERT INTO `sys_role_menu` VALUES (4, 2090);
INSERT INTO `sys_role_menu` VALUES (4, 2091);
INSERT INTO `sys_role_menu` VALUES (4, 2092);
INSERT INTO `sys_role_menu` VALUES (4, 2093);
INSERT INTO `sys_role_menu` VALUES (4, 2098);
INSERT INTO `sys_role_menu` VALUES (4, 2099);
INSERT INTO `sys_role_menu` VALUES (4, 2100);
INSERT INTO `sys_role_menu` VALUES (4, 2101);
INSERT INTO `sys_role_menu` VALUES (4, 2102);
INSERT INTO `sys_role_menu` VALUES (4, 2103);
INSERT INTO `sys_role_menu` VALUES (4, 2104);
INSERT INTO `sys_role_menu` VALUES (4, 2105);
INSERT INTO `sys_role_menu` VALUES (4, 2106);
INSERT INTO `sys_role_menu` VALUES (4, 2107);
INSERT INTO `sys_role_menu` VALUES (4, 2108);
INSERT INTO `sys_role_menu` VALUES (4, 2109);
INSERT INTO `sys_role_menu` VALUES (4, 2110);
INSERT INTO `sys_role_menu` VALUES (4, 2111);
INSERT INTO `sys_role_menu` VALUES (4, 2112);
INSERT INTO `sys_role_menu` VALUES (4, 2113);
INSERT INTO `sys_role_menu` VALUES (4, 2114);
INSERT INTO `sys_role_menu` VALUES (4, 2115);
INSERT INTO `sys_role_menu` VALUES (4, 2116);
INSERT INTO `sys_role_menu` VALUES (4, 2117);
INSERT INTO `sys_role_menu` VALUES (4, 2118);
INSERT INTO `sys_role_menu` VALUES (4, 2119);
INSERT INTO `sys_role_menu` VALUES (4, 2120);
INSERT INTO `sys_role_menu` VALUES (4, 2121);
INSERT INTO `sys_role_menu` VALUES (4, 2122);
INSERT INTO `sys_role_menu` VALUES (4, 2123);
INSERT INTO `sys_role_menu` VALUES (4, 2124);
INSERT INTO `sys_role_menu` VALUES (4, 2125);
INSERT INTO `sys_role_menu` VALUES (4, 2126);
INSERT INTO `sys_role_menu` VALUES (4, 2127);
INSERT INTO `sys_role_menu` VALUES (4, 2128);
INSERT INTO `sys_role_menu` VALUES (4, 2129);
INSERT INTO `sys_role_menu` VALUES (4, 2130);
INSERT INTO `sys_role_menu` VALUES (4, 2131);
INSERT INTO `sys_role_menu` VALUES (4, 2132);
INSERT INTO `sys_role_menu` VALUES (4, 2133);
INSERT INTO `sys_role_menu` VALUES (4, 2134);
INSERT INTO `sys_role_menu` VALUES (4, 2135);
INSERT INTO `sys_role_menu` VALUES (4, 2136);
INSERT INTO `sys_role_menu` VALUES (4, 2137);
INSERT INTO `sys_role_menu` VALUES (4, 2138);
INSERT INTO `sys_role_menu` VALUES (4, 2139);
INSERT INTO `sys_role_menu` VALUES (4, 2140);
INSERT INTO `sys_role_menu` VALUES (4, 2141);
INSERT INTO `sys_role_menu` VALUES (4, 2142);
INSERT INTO `sys_role_menu` VALUES (4, 2143);
INSERT INTO `sys_role_menu` VALUES (4, 2144);
INSERT INTO `sys_role_menu` VALUES (4, 2145);
INSERT INTO `sys_role_menu` VALUES (4, 2146);
INSERT INTO `sys_role_menu` VALUES (4, 2147);
INSERT INTO `sys_role_menu` VALUES (4, 2148);
INSERT INTO `sys_role_menu` VALUES (4, 2149);
INSERT INTO `sys_role_menu` VALUES (4, 2150);
INSERT INTO `sys_role_menu` VALUES (4, 2151);
INSERT INTO `sys_role_menu` VALUES (4, 2152);
INSERT INTO `sys_role_menu` VALUES (4, 2153);
INSERT INTO `sys_role_menu` VALUES (4, 2154);
INSERT INTO `sys_role_menu` VALUES (4, 2155);
INSERT INTO `sys_role_menu` VALUES (4, 2156);
INSERT INTO `sys_role_menu` VALUES (4, 2157);
INSERT INTO `sys_role_menu` VALUES (4, 2158);
INSERT INTO `sys_role_menu` VALUES (4, 2159);
INSERT INTO `sys_role_menu` VALUES (4, 2160);
INSERT INTO `sys_role_menu` VALUES (4, 2161);
INSERT INTO `sys_role_menu` VALUES (4, 2162);
INSERT INTO `sys_role_menu` VALUES (4, 2163);
INSERT INTO `sys_role_menu` VALUES (4, 2164);
INSERT INTO `sys_role_menu` VALUES (4, 2165);
INSERT INTO `sys_role_menu` VALUES (4, 2166);
INSERT INTO `sys_role_menu` VALUES (4, 2173);
INSERT INTO `sys_role_menu` VALUES (4, 2174);
INSERT INTO `sys_role_menu` VALUES (4, 2175);
INSERT INTO `sys_role_menu` VALUES (4, 2176);
INSERT INTO `sys_role_menu` VALUES (4, 2177);
INSERT INTO `sys_role_menu` VALUES (5, 2001);
INSERT INTO `sys_role_menu` VALUES (5, 2002);
INSERT INTO `sys_role_menu` VALUES (5, 2003);
INSERT INTO `sys_role_menu` VALUES (5, 2004);
INSERT INTO `sys_role_menu` VALUES (5, 2005);
INSERT INTO `sys_role_menu` VALUES (5, 2006);
INSERT INTO `sys_role_menu` VALUES (5, 2007);
INSERT INTO `sys_role_menu` VALUES (5, 2008);
INSERT INTO `sys_role_menu` VALUES (5, 2009);
INSERT INTO `sys_role_menu` VALUES (5, 2010);
INSERT INTO `sys_role_menu` VALUES (5, 2011);
INSERT INTO `sys_role_menu` VALUES (5, 2012);
INSERT INTO `sys_role_menu` VALUES (5, 2013);
INSERT INTO `sys_role_menu` VALUES (5, 2014);
INSERT INTO `sys_role_menu` VALUES (5, 2015);
INSERT INTO `sys_role_menu` VALUES (5, 2016);
INSERT INTO `sys_role_menu` VALUES (5, 2017);
INSERT INTO `sys_role_menu` VALUES (5, 2018);
INSERT INTO `sys_role_menu` VALUES (5, 2019);
INSERT INTO `sys_role_menu` VALUES (5, 2020);
INSERT INTO `sys_role_menu` VALUES (5, 2021);
INSERT INTO `sys_role_menu` VALUES (5, 2022);
INSERT INTO `sys_role_menu` VALUES (5, 2023);
INSERT INTO `sys_role_menu` VALUES (5, 2024);
INSERT INTO `sys_role_menu` VALUES (5, 2025);
INSERT INTO `sys_role_menu` VALUES (5, 2026);
INSERT INTO `sys_role_menu` VALUES (5, 2027);
INSERT INTO `sys_role_menu` VALUES (5, 2028);
INSERT INTO `sys_role_menu` VALUES (5, 2029);
INSERT INTO `sys_role_menu` VALUES (5, 2030);
INSERT INTO `sys_role_menu` VALUES (5, 2031);
INSERT INTO `sys_role_menu` VALUES (5, 2032);
INSERT INTO `sys_role_menu` VALUES (5, 2033);
INSERT INTO `sys_role_menu` VALUES (5, 2034);
INSERT INTO `sys_role_menu` VALUES (5, 2035);
INSERT INTO `sys_role_menu` VALUES (5, 2036);
INSERT INTO `sys_role_menu` VALUES (5, 2037);
INSERT INTO `sys_role_menu` VALUES (5, 2038);
INSERT INTO `sys_role_menu` VALUES (5, 2039);
INSERT INTO `sys_role_menu` VALUES (5, 2040);
INSERT INTO `sys_role_menu` VALUES (5, 2041);
INSERT INTO `sys_role_menu` VALUES (5, 2042);
INSERT INTO `sys_role_menu` VALUES (5, 2043);
INSERT INTO `sys_role_menu` VALUES (5, 2044);
INSERT INTO `sys_role_menu` VALUES (5, 2045);
INSERT INTO `sys_role_menu` VALUES (5, 2046);
INSERT INTO `sys_role_menu` VALUES (5, 2047);
INSERT INTO `sys_role_menu` VALUES (5, 2048);
INSERT INTO `sys_role_menu` VALUES (5, 2049);
INSERT INTO `sys_role_menu` VALUES (5, 2050);
INSERT INTO `sys_role_menu` VALUES (5, 2051);
INSERT INTO `sys_role_menu` VALUES (5, 2052);
INSERT INTO `sys_role_menu` VALUES (5, 2053);
INSERT INTO `sys_role_menu` VALUES (5, 2056);
INSERT INTO `sys_role_menu` VALUES (5, 2060);
INSERT INTO `sys_role_menu` VALUES (5, 2062);
INSERT INTO `sys_role_menu` VALUES (5, 2063);
INSERT INTO `sys_role_menu` VALUES (5, 2064);
INSERT INTO `sys_role_menu` VALUES (5, 2065);
INSERT INTO `sys_role_menu` VALUES (5, 2066);
INSERT INTO `sys_role_menu` VALUES (5, 2067);
INSERT INTO `sys_role_menu` VALUES (5, 2068);
INSERT INTO `sys_role_menu` VALUES (5, 2069);
INSERT INTO `sys_role_menu` VALUES (5, 2070);
INSERT INTO `sys_role_menu` VALUES (5, 2071);
INSERT INTO `sys_role_menu` VALUES (5, 2072);
INSERT INTO `sys_role_menu` VALUES (5, 2073);
INSERT INTO `sys_role_menu` VALUES (5, 2074);
INSERT INTO `sys_role_menu` VALUES (5, 2075);
INSERT INTO `sys_role_menu` VALUES (5, 2076);
INSERT INTO `sys_role_menu` VALUES (5, 2077);
INSERT INTO `sys_role_menu` VALUES (5, 2078);
INSERT INTO `sys_role_menu` VALUES (5, 2079);
INSERT INTO `sys_role_menu` VALUES (5, 2080);
INSERT INTO `sys_role_menu` VALUES (5, 2081);
INSERT INTO `sys_role_menu` VALUES (5, 2082);
INSERT INTO `sys_role_menu` VALUES (5, 2083);
INSERT INTO `sys_role_menu` VALUES (5, 2084);
INSERT INTO `sys_role_menu` VALUES (5, 2085);
INSERT INTO `sys_role_menu` VALUES (5, 2086);
INSERT INTO `sys_role_menu` VALUES (5, 2087);
INSERT INTO `sys_role_menu` VALUES (5, 2089);
INSERT INTO `sys_role_menu` VALUES (5, 2090);
INSERT INTO `sys_role_menu` VALUES (5, 2091);
INSERT INTO `sys_role_menu` VALUES (5, 2092);
INSERT INTO `sys_role_menu` VALUES (5, 2093);
INSERT INTO `sys_role_menu` VALUES (5, 2094);
INSERT INTO `sys_role_menu` VALUES (5, 2095);
INSERT INTO `sys_role_menu` VALUES (5, 2096);
INSERT INTO `sys_role_menu` VALUES (5, 2097);
INSERT INTO `sys_role_menu` VALUES (5, 2098);
INSERT INTO `sys_role_menu` VALUES (5, 2099);
INSERT INTO `sys_role_menu` VALUES (5, 2100);
INSERT INTO `sys_role_menu` VALUES (5, 2101);
INSERT INTO `sys_role_menu` VALUES (5, 2102);
INSERT INTO `sys_role_menu` VALUES (5, 2103);
INSERT INTO `sys_role_menu` VALUES (5, 2104);
INSERT INTO `sys_role_menu` VALUES (5, 2105);
INSERT INTO `sys_role_menu` VALUES (5, 2106);
INSERT INTO `sys_role_menu` VALUES (5, 2107);
INSERT INTO `sys_role_menu` VALUES (5, 2108);
INSERT INTO `sys_role_menu` VALUES (5, 2109);
INSERT INTO `sys_role_menu` VALUES (5, 2110);
INSERT INTO `sys_role_menu` VALUES (5, 2111);
INSERT INTO `sys_role_menu` VALUES (5, 2112);
INSERT INTO `sys_role_menu` VALUES (5, 2113);
INSERT INTO `sys_role_menu` VALUES (5, 2114);
INSERT INTO `sys_role_menu` VALUES (5, 2115);
INSERT INTO `sys_role_menu` VALUES (5, 2116);
INSERT INTO `sys_role_menu` VALUES (5, 2117);
INSERT INTO `sys_role_menu` VALUES (5, 2118);
INSERT INTO `sys_role_menu` VALUES (5, 2119);
INSERT INTO `sys_role_menu` VALUES (5, 2120);
INSERT INTO `sys_role_menu` VALUES (5, 2121);
INSERT INTO `sys_role_menu` VALUES (5, 2122);
INSERT INTO `sys_role_menu` VALUES (5, 2123);
INSERT INTO `sys_role_menu` VALUES (5, 2124);
INSERT INTO `sys_role_menu` VALUES (5, 2125);
INSERT INTO `sys_role_menu` VALUES (5, 2126);
INSERT INTO `sys_role_menu` VALUES (5, 2127);
INSERT INTO `sys_role_menu` VALUES (5, 2128);
INSERT INTO `sys_role_menu` VALUES (5, 2129);
INSERT INTO `sys_role_menu` VALUES (5, 2130);
INSERT INTO `sys_role_menu` VALUES (5, 2131);
INSERT INTO `sys_role_menu` VALUES (5, 2132);
INSERT INTO `sys_role_menu` VALUES (5, 2133);
INSERT INTO `sys_role_menu` VALUES (5, 2134);
INSERT INTO `sys_role_menu` VALUES (5, 2135);
INSERT INTO `sys_role_menu` VALUES (5, 2136);
INSERT INTO `sys_role_menu` VALUES (5, 2137);
INSERT INTO `sys_role_menu` VALUES (5, 2138);
INSERT INTO `sys_role_menu` VALUES (5, 2139);
INSERT INTO `sys_role_menu` VALUES (5, 2140);
INSERT INTO `sys_role_menu` VALUES (5, 2141);
INSERT INTO `sys_role_menu` VALUES (5, 2142);
INSERT INTO `sys_role_menu` VALUES (5, 2143);
INSERT INTO `sys_role_menu` VALUES (5, 2144);
INSERT INTO `sys_role_menu` VALUES (5, 2145);
INSERT INTO `sys_role_menu` VALUES (5, 2146);
INSERT INTO `sys_role_menu` VALUES (5, 2147);
INSERT INTO `sys_role_menu` VALUES (5, 2148);
INSERT INTO `sys_role_menu` VALUES (5, 2149);
INSERT INTO `sys_role_menu` VALUES (5, 2150);
INSERT INTO `sys_role_menu` VALUES (5, 2151);
INSERT INTO `sys_role_menu` VALUES (5, 2152);
INSERT INTO `sys_role_menu` VALUES (5, 2153);
INSERT INTO `sys_role_menu` VALUES (5, 2154);
INSERT INTO `sys_role_menu` VALUES (5, 2155);
INSERT INTO `sys_role_menu` VALUES (5, 2156);
INSERT INTO `sys_role_menu` VALUES (5, 2157);
INSERT INTO `sys_role_menu` VALUES (5, 2158);
INSERT INTO `sys_role_menu` VALUES (5, 2159);
INSERT INTO `sys_role_menu` VALUES (5, 2160);
INSERT INTO `sys_role_menu` VALUES (5, 2161);
INSERT INTO `sys_role_menu` VALUES (5, 2162);
INSERT INTO `sys_role_menu` VALUES (5, 2163);
INSERT INTO `sys_role_menu` VALUES (5, 2164);
INSERT INTO `sys_role_menu` VALUES (5, 2165);
INSERT INTO `sys_role_menu` VALUES (5, 2166);
INSERT INTO `sys_role_menu` VALUES (5, 2173);
INSERT INTO `sys_role_menu` VALUES (5, 2174);
INSERT INTO `sys_role_menu` VALUES (5, 2175);
INSERT INTO `sys_role_menu` VALUES (5, 2176);
INSERT INTO `sys_role_menu` VALUES (5, 2177);
COMMIT;

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
  `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) NOT NULL COMMENT '用户昵称',
  `user_type` varchar(2) DEFAULT '00' COMMENT '用户类型（00系统用户）(11:企业微信用户)',
  `email` varchar(100) DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) DEFAULT '' COMMENT '手机号码',
  `sex` char(1) DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(100) DEFAULT '' COMMENT '头像地址',
  `password` varchar(100) DEFAULT '' COMMENT '密码',
  `status` char(1) DEFAULT '0' COMMENT '帐号状态（0正常 1停用）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(50) DEFAULT '' COMMENT '最后登陆IP',
  `login_date` datetime DEFAULT NULL COMMENT '最后登陆时间',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  `corp_account` varchar(30) DEFAULT NULL,
  `we_user_id` varchar(21) DEFAULT NULL,
  `corp_id` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户信息表';

-- ----------------------------
-- Records of sys_user
-- ----------------------------
BEGIN;
INSERT INTO `sys_user` VALUES (1, 103, 'admin', 'LinkWeChat', '00', 'ry@163.com', '15888888888', '0', '/profile/avatar/2021/08/17/ddf00693-0a9e-4e9b-8648-cb6142d05c0f.jpeg', '$2a$10$wqzhqfDZWH8zK5rlpOkO3e.QsZSUjijLUwECrjcwSXw4ODlE07znO', '0', '0', '127.0.0.1', '2018-03-16 11:33:00', 'admin', '2018-03-16 11:33:00', 'admin', '2021-10-31 21:03:54', '管理员', NULL, NULL, NULL);
COMMIT;

-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post` (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`,`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户与岗位关联表';

-- ----------------------------
-- Records of sys_user_post
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_post` VALUES (2, 2);
INSERT INTO `sys_user_post` VALUES (106, 3);
INSERT INTO `sys_user_post` VALUES (107, 4);
INSERT INTO `sys_user_post` VALUES (117, 4);
INSERT INTO `sys_user_post` VALUES (118, 4);
INSERT INTO `sys_user_post` VALUES (119, 4);
INSERT INTO `sys_user_post` VALUES (122, 4);
COMMIT;

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户和角色关联表';

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_role` VALUES (2, 2);
INSERT INTO `sys_user_role` VALUES (101, 2);
INSERT INTO `sys_user_role` VALUES (102, 2);
INSERT INTO `sys_user_role` VALUES (104, 2);
INSERT INTO `sys_user_role` VALUES (105, 2);
INSERT INTO `sys_user_role` VALUES (106, 2);
INSERT INTO `sys_user_role` VALUES (106, 3);
INSERT INTO `sys_user_role` VALUES (108, 3);
INSERT INTO `sys_user_role` VALUES (109, 3);
INSERT INTO `sys_user_role` VALUES (110, 3);
INSERT INTO `sys_user_role` VALUES (111, 2);
INSERT INTO `sys_user_role` VALUES (113, 2);
INSERT INTO `sys_user_role` VALUES (114, 2);
INSERT INTO `sys_user_role` VALUES (115, 2);
INSERT INTO `sys_user_role` VALUES (116, 2);
INSERT INTO `sys_user_role` VALUES (117, 5);
INSERT INTO `sys_user_role` VALUES (118, 4);
INSERT INTO `sys_user_role` VALUES (119, 5);
INSERT INTO `sys_user_role` VALUES (122, 2);
INSERT INTO `sys_user_role` VALUES (123, 3);
COMMIT;

-- ----------------------------
-- Table structure for we_allocate_customer
-- ----------------------------
DROP TABLE IF EXISTS `we_allocate_customer`;
CREATE TABLE `we_allocate_customer` (
  `takeover_userid` varchar(32) DEFAULT NULL COMMENT '接替成员的userid',
  `external_userid` varchar(32) NOT NULL COMMENT '被分配的客户id',
  `allocate_time` datetime NOT NULL COMMENT '分配时间',
  `handover_userid` varchar(32) NOT NULL COMMENT '原跟进成员的userid',
  `status` tinyint(4) DEFAULT '2' COMMENT '接替状态， 1-接替完毕 2-等待接替 3-客户拒绝 4-接替成员客户达到上限 5-无接替记录',
  `takeover_time` datetime DEFAULT NULL COMMENT '接替客户的时间，如果是等待接替状态，则为未来的自动接替时间',
  `fail_reason` varchar(50) DEFAULT NULL COMMENT '失败原因',
  `extent_type` tinyint(1) DEFAULT '0' COMMENT '0:离职继承;1:在职继承;',
  PRIMARY KEY (`external_userid`,`handover_userid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='离职分配的客户列表';

-- ----------------------------
-- Records of we_allocate_customer
-- ----------------------------
BEGIN;
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA-0xOuKYUHh-c2775AzVArA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA0P6NqSfZ5pwOjzixx0qsdg', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA0za1PA2XJjb6FP1tWXIusg', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA11pq_y9YlVa75cwJfdyq4Q', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA11pq_y9YlVa75cwJfdyq4Q', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA2-YZHc-aKsGFbWmramFtIg', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA2-YZHc-aKsGFbWmramFtIg', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA25vRZ_8Y9uVe4NY782H-WA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA4L_cDcJKjGsD_rFdbXYXXQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA617zOzAIg-0sZG3Vok7BUA', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA6T34WzJJ9r5E6m70H-wS5Q', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAA8B9OlGEo_QMHm6Cu87BboA', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA9pPqkEad_auJDZ-RqPwYWQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAA5o8dFp-aHCdk5wI5G4w_w', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAaDDXaMLgzujxEIxCIdtg5Q', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAAs3lI2L2cqDslOurS493EA', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAb40dboMCJzFZ7nk6AEJQLQ', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAABjyjjR4hFWYYL1ZJYtzLRw', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAABwBVqbixPFil7e8rf2LTaQ', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAbYgCiE1Li4f1AyXGn2l0VA', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAABY_f_iw_NBLUh78xq5Jw1A', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAACBJGON2iNVj1GEkxRm9FMA', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAACcqffCwYfx14BgQM21h4PA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAACHiVWyq3SYafk1kpe9UM3w', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAActhuRhssxiHacSWqXwRn-A', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAcVoRGKX9fc8TU8a1UyEZpQ', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAACwQ_NBBocBQqPnVz9vTsWg', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAADa3hDr7g5NekxBXwXIsUcQ', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAADa3hDr7g5NekxBXwXIsUcQ', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAADa3hDr7g5NekxBXwXIsUcQ', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAdaTRScQDKF2EFZPXoUsCBg', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAdQxQW1T_P1bfVrzGLBVH8g', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAdQxQW1T_P1bfVrzGLBVH8g', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAeDibHUYDi2nuCVkoXY0AtQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAegvNwGG44Cb4Hqz1wmF7qw', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAEr-o1AZnAjBvTIw6d9Hy_Q', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAEr-o1AZnAjBvTIw6d9Hy_Q', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAFoIYgvJJFimqTiny2_8U3g', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAFoIYgvJJFimqTiny2_8U3g', '2021-12-27 23:25:39', 'JiangPengKai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAFoIYgvJJFimqTiny2_8U3g', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAfR41VgWW6npVYWfywXOWMQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAftNZNN9td9Phhs6HK2Zlfg', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAgeyl3wX6hYmd6ib_l6QExw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAgwJi_zZNkNEV2qUviUQ9wQ', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAH-7czor5g0Ws0nXF43xXew', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAH3t8bD-XmSGgJ9IaTprioQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAH86zEyzhWUPgpU2660Pwvg', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAHSQBfWDOMSWB8Pnx4p6wiA', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAHSQBfWDOMSWB8Pnx4p6wiA', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAIH-T9ekaE-Q52N2lKWeInw', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAIH-T9ekaE-Q52N2lKWeInw', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAimAXQH9n0xi48mF6i1muJw', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAISnA8-s6Tp_vGmL_CmvULw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAISnA8-s6Tp_vGmL_CmvULw', '2021-12-27 23:25:39', 'JiangPengKai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAJ3ufqXoN2KWEbsXILHfZOQ', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAJ7wR8qAXNyjOXqGD1-s-OQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAJF9WzkhJAl2ho0DtJo7TjQ', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAK03JMo4xv-5Ipmj9Lzk7cw', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAkalMQoV9zomXjcv13HQ6Xw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAKi80J8sjoPVxEYYL3rFt2w', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAl6PkS9_RmgyWiCNmstN_XQ', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAlDBWdFtwNmbnn0O0KNT3RQ', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAALn4u9eHJTsEo-RC74Wp8xw', '2021-12-27 23:25:39', 'WangXiaoFeng', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAALqUolgnmXovMBEcAgUvU1g', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAALqUolgnmXovMBEcAgUvU1g', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAALqUolgnmXovMBEcAgUvU1g', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAALqUolgnmXovMBEcAgUvU1g', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAmNfC6xOiX3dZ4c86ot0TDA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAn0VKABCH3tHfJ06pihQTaA', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAN2E5V9CAyo2LI9kM4hLm4w', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAna8UFCCdg67XkoT3ESOW3A', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAANr1jFktoNnQff-ZonJfS5A', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAnXfAW094gVj7CsJwStVGdw', '2021-12-27 23:25:39', 'JiangPengKai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAoCBD1frD3hRplbsXoBLx6g', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAoJfSK0rgT-LmOrR-bN4dBA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAOjOVz7Wg9MCKyoRtnNT4Mg', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAoKVraCxcxJNwC9a2JjbU2w', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAoKVraCxcxJNwC9a2JjbU2w', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAot70aNMARueZBX0dmhctHA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAoVW7mrLxaUVCU6_DxCS4iQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAoVW7mrLxaUVCU6_DxCS4iQ', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAoyE3PRaHxt_27AMIdfRaeg', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAApC9WFn_EmLaSQ5NNpHPiPw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAplgWxQ2709vdLZLgry6GVA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAPm8z602tM4MDE3WR-cInyw', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAPqUlzvnP3Sc_XS4bxbA9Ug', '2021-12-27 23:25:39', 'JiangPengKai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAApTcSW-3caqljFmKhm0r-bQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAApTcSW-3caqljFmKhm0r-bQ', '2021-12-27 23:25:39', 'JiangPengKai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAApTcSW-3caqljFmKhm0r-bQ', '2021-12-27 23:25:39', 'LiAng', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAApTcSW-3caqljFmKhm0r-bQ', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAqz3dyuRELjrwvRWG8aNgkw', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAr3nm9kRCshxvnwMSOi6rcQ', '2021-12-27 23:25:39', 'LiAng', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAArinDSx2BSy7ktN_VxYAkDQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAARrQYiHmOSig9M4t30q0k2g', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAs2aGaM2UtEpCX04iSP47wQ', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASE12iNl8ygMl1bETYPnmBA', '2021-12-27 23:25:39', 'ZouJian', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASHmR25O4t-xB8mHKMfgXxg', '2021-12-27 23:25:39', 'WangXiaoFeng', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAsiej3RZarMYNFseeaYOPQw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAsKPThAa4dWmD3FvDEtT-Dg', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAsQVuCR_zoXfnQsnCGG25rQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAASVCGwTG25dV3tv4VCm5P8A', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASVCGwTG25dV3tv4VCm5P8A', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASVCGwTG25dV3tv4VCm5P8A', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASVCGwTG25dV3tv4VCm5P8A', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASVCGwTG25dV3tv4VCm5P8A', '2021-12-27 23:25:39', 'WangXiaoFeng', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAASVCGwTG25dV3tv4VCm5P8A', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAT-roq7DwiDbMwRonUI709w', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAtBKbhld9_fVPy-EzGMOl4w', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAteEDbKMUAKlzM7xrsQKiqQ', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAu610mafEXes_En4zjhQ2eQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAudYbU4lIZfxGnQPXZn4A0Q', '2021-12-27 23:25:39', 'petercai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAULZ9FxWvVWA8GGsLwlrLnQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAuW42ERRZc4_I4fDvdY5wAA', '2021-12-27 23:25:39', 'WangYuMan', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAV2RuLXNetKZ7jOKrjWcXwg', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAw5NUU3DqWzbMzKCHu4dOTw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAWxtwkhkw2tyrYJjlX6WJAA', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAx5Y610szC5gnvuEJ_SvM-g', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAAX7SOgypmp4DC83H9ngZRRg', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAX7whLUWEr_og8rhNXdPgig', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAX7whLUWEr_og8rhNXdPgig', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAXqDrbhrZSKw-sHuxAwyqLA', '2021-12-27 23:25:39', 'JiangPengKai', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAXqDrbhrZSKw-sHuxAwyqLA', '2021-12-27 23:25:39', 'WangXiaoFeng', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAy3xMgRgIxWEFUeefbjzVbw', '2021-12-27 23:25:39', 'JiXuXu', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAysjRW8MXTnkX1m5fRyrnpQ', '2021-12-27 23:25:39', 'SunXiWang', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES (NULL, 'wmiGuBCgAAYSVNr7GZtnp031nFb7GFGA', '2021-12-27 23:25:39', 'WenBin', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'wmiGuBCgAA_G70i6XcALW_WMdw5wsoHw', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'woiGuBCgAAfRDB9Q6-tyM4ntqS0lu7jA', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
INSERT INTO `we_allocate_customer` VALUES ('ShengXiYong', 'woiGuBCgAAsj6jvVBL497iwbn7EVeGUQ', '2021-12-27 23:03:51', 'FengJuZhuDeJieDao', 2, NULL, '离职继承', 0);
COMMIT;

-- ----------------------------
-- Table structure for we_allocate_group
-- ----------------------------
DROP TABLE IF EXISTS `we_allocate_group`;
CREATE TABLE `we_allocate_group` (
  `chat_id` varchar(32) NOT NULL COMMENT '分配的群id',
  `new_owner` varchar(32) DEFAULT NULL COMMENT '新群主',
  `err_msg` varchar(255) DEFAULT NULL COMMENT '接替失败原因',
  `status` tinyint(1) DEFAULT '0' COMMENT '0:被接替成功  2:接替失败  3:等待分配',
  `old_owner` varchar(32) NOT NULL COMMENT '原群主',
  `allocate_time` datetime DEFAULT NULL COMMENT '分配时间',
  PRIMARY KEY (`chat_id`,`old_owner`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='分配的群租';

-- ----------------------------
-- Records of we_allocate_group
-- ----------------------------
BEGIN;
INSERT INTO `we_allocate_group` VALUES ('wriGuBCgAAHGA0E7tLqwSf3iam31TSlQ', 'ShengXiYong', NULL, 3, 'FengJuZhuDeJieDao', '2021-12-27 23:35:41');
INSERT INTO `we_allocate_group` VALUES ('wriGuBCgAAv_RN3mRu6GYv2ej4g6y71g', 'ShengXiYong', NULL, 3, 'FengJuZhuDeJieDao', '2021-12-27 23:35:41');
COMMIT;

-- ----------------------------
-- Table structure for we_app
-- ----------------------------
DROP TABLE IF EXISTS `we_app`;
CREATE TABLE `we_app` (
  `id` bigint(20) NOT NULL,
  `agent_id` bigint(20) DEFAULT NULL COMMENT '应用id',
  `agent_name` varchar(64) DEFAULT NULL COMMENT '应用名称',
  `agent_secret` varchar(64) DEFAULT NULL COMMENT '应用密钥',
  `description` varchar(255) DEFAULT NULL COMMENT '应用描述',
  `square_logo_url` varchar(255) DEFAULT NULL COMMENT '应用图标',
  `close` tinyint(255) DEFAULT NULL COMMENT '企业应用是否被停用(1:是;0:否)',
  `redirect_domain` varchar(255) DEFAULT NULL COMMENT '企业应用可信域名',
  `report_location_flag` tinyint(4) DEFAULT NULL COMMENT '企业应用是否打开地理位置上报 0：不上报；1：进入会话上报；',
  `isreportenter` tinyint(4) DEFAULT NULL COMMENT '是否上报用户进入应用事件。0：不接收；1：接收',
  `home_url` varchar(255) DEFAULT NULL COMMENT '应用主页url',
  `app_type` tinyint(4) DEFAULT '2' COMMENT '应用类型(1:小程序;2:其他)',
  `create_time` datetime DEFAULT NULL COMMENT '应用创建时间',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `status` char(1) DEFAULT '0' COMMENT '帐号状态（0正常 1停用)',
  `allow_partys` varchar(255) DEFAULT NULL,
  `allow_userinfos` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of we_app
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_category
-- ----------------------------
DROP TABLE IF EXISTS `we_category`;
CREATE TABLE `we_category` (
  `id` bigint(100) NOT NULL COMMENT '主键id',
  `media_type` int(1) NOT NULL COMMENT '0 图片（image）、1 语音（voice）、2 视频（video），3 普通文件(file) 4 文本 5 海报、 6 活码',
  `name` varchar(50) DEFAULT NULL COMMENT '分类名称',
  `parent_id` bigint(100) DEFAULT '0' COMMENT '父分类的id',
  `flag` tinyint(4) DEFAULT '0' COMMENT '可删除标识 0 可删除 1 不可删除',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` char(1) DEFAULT '0' COMMENT '0  未删除 2 已删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of we_category
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_chat_collection
-- ----------------------------
DROP TABLE IF EXISTS `we_chat_collection`;
CREATE TABLE `we_chat_collection` (
  `collection_id` bigint(100) NOT NULL COMMENT '聊天工具 侧边栏栏 素材收藏',
  `material_id` bigint(100) DEFAULT NULL COMMENT '素材id',
  `user_id` varchar(100) DEFAULT NULL,
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  PRIMARY KEY (`collection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of we_chat_collection
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_chat_contact_msg
-- ----------------------------
DROP TABLE IF EXISTS `we_chat_contact_msg`;
CREATE TABLE `we_chat_contact_msg` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `msg_id` varchar(50) NOT NULL COMMENT '消息id',
  `from_id` varchar(32) NOT NULL COMMENT '发送人id',
  `to_list` text NOT NULL COMMENT '接收人id（列表）',
  `room_id` varchar(32) DEFAULT NULL COMMENT '群聊id',
  `action` varchar(20) NOT NULL COMMENT '消息类型',
  `msg_type` varchar(20) NOT NULL COMMENT '消息类型(如：文本，图片)',
  `msg_time` datetime NOT NULL COMMENT '发送时间',
  `seq` bigint(20) DEFAULT NULL COMMENT '消息标识',
  `contact` text COMMENT '消息内容',
  `is_external` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否为外部聊天 0 外部 1 内部',
  `create_by` varchar(50) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flg` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0正常 1 删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1247 DEFAULT CHARSET=utf8 COMMENT='会话消息';

-- ----------------------------
-- Records of we_chat_contact_msg
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_chat_contact_sensitive_msg
-- ----------------------------
DROP TABLE IF EXISTS `we_chat_contact_sensitive_msg`;
CREATE TABLE `we_chat_contact_sensitive_msg` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `msg_id` varchar(50) NOT NULL COMMENT '消息id',
  `send_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '通知发送状态',
  `pattern_words` varchar(300) NOT NULL DEFAULT '',
  `content` text COMMENT '匹配内容',
  `create_by` varchar(50) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flg` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0正常 1 删除',
  `from_id` varchar(32) NOT NULL COMMENT '发送人id',
  `msg_time` datetime NOT NULL COMMENT '发送时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of we_chat_contact_sensitive_msg
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_chat_item
-- ----------------------------
DROP TABLE IF EXISTS `we_chat_item`;
CREATE TABLE `we_chat_item` (
  `item_id` bigint(100) NOT NULL,
  `side_id` bigint(100) DEFAULT NULL COMMENT '聊天工具栏id',
  `material_id` bigint(100) DEFAULT NULL COMMENT '素材id',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  PRIMARY KEY (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of we_chat_item
-- ----------------------------
BEGIN;
INSERT INTO `we_chat_item` VALUES (1448191877458300928, 6, 1446692446749724672, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300929, 6, 1446692148031393792, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300930, 6, 1446691809320374272, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300931, 6, 1446683660953718784, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300932, 6, 1446088553518993408, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300933, 6, 1446057686213988352, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300934, 6, 1446019827868241920, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300935, 6, 1445590448054865920, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300936, 6, 1445590411862216704, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300937, 6, 1445589496690249728, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1448191877458300938, 6, 1443756439070969856, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1450432241384689664, 4, 1415361334123565056, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1450432241384689665, 4, 1416330815683563521, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1450432241384689666, 4, 1427205974866923521, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179648, 5, 1392776486477500416, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179649, 5, 1422086511842693121, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179650, 5, 1425267663583711233, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179651, 5, 1427922431812702209, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179652, 5, 1433347767916433409, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179653, 5, 1433645876282265601, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179654, 5, 1434899473154314240, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179655, 5, 1434899581711290369, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179656, 5, 1435268656664809473, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179657, 5, 1435465748788154369, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179658, 5, 1435466183540346881, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179659, 5, 1435793320826769409, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179660, 5, 1440591762312794113, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1452462050881179661, 5, 1441248506441502720, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969600, 1, 1437987145179598848, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969601, 1, 1443452625034022913, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969602, 1, 1443452897961578497, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969603, 1, 1443757013678034945, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969604, 1, 1447392380276838400, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969605, 1, 1448577920569315328, NULL, NULL, NULL, NULL);
INSERT INTO `we_chat_item` VALUES (1453993655042969606, 1, 1453606864506982400, NULL, NULL, NULL, NULL);
COMMIT;

-- ----------------------------
-- Table structure for we_chat_side
-- ----------------------------
DROP TABLE IF EXISTS `we_chat_side`;
CREATE TABLE `we_chat_side` (
  `side_id` bigint(100) NOT NULL COMMENT '主键id',
  `media_type` bigint(100) DEFAULT NULL COMMENT '素材类型 0 图片（image）、1 语音（voice）、2 视频（video），3 普通文件(file) 4 文本 5 海报',
  `side_name` varchar(255) DEFAULT NULL COMMENT '聊天工具栏名称',
  `total` int(10) DEFAULT NULL COMMENT '已抓取素材数量',
  `using` int(255) DEFAULT '0' COMMENT '是否启用 0 启用 1 未启用',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` int(2) DEFAULT '0' COMMENT '0  未删除 1 已删除',
  PRIMARY KEY (`side_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of we_chat_side
-- ----------------------------
BEGIN;
INSERT INTO `we_chat_side` VALUES (1, 0, '图片', 7, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `we_chat_side` VALUES (3, 2, '视频', 0, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `we_chat_side` VALUES (4, 3, '文件类型', 3, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `we_chat_side` VALUES (5, 4, '文本类型', 14, 0, NULL, NULL, NULL, NULL, 0);
INSERT INTO `we_chat_side` VALUES (6, 5, '海报类型', 11, 1, NULL, NULL, NULL, NULL, 0);
COMMIT;

-- ----------------------------
-- Table structure for we_community_new_group
-- ----------------------------
DROP TABLE IF EXISTS `we_community_new_group`;
CREATE TABLE `we_community_new_group` (
  `id` bigint(64) NOT NULL COMMENT '主键ID',
  `empl_code_name` varchar(100) NOT NULL COMMENT '员工活码名称',
  `group_code_id` bigint(64) NOT NULL COMMENT '群活码ID',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` int(1) DEFAULT '0' COMMENT '0:正常;1:删除;',
  `empl_code_id` bigint(20) NOT NULL COMMENT '员工活码id',
  `new_group_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='新客自动拉群';

-- ----------------------------
-- Records of we_community_new_group
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_config
-- ----------------------------
DROP TABLE IF EXISTS `we_config`;
CREATE TABLE `we_config` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(50) NOT NULL COMMENT '名称',
  `status` char(1) DEFAULT '0' COMMENT '状态 1:开启 0:关闭',
  `type` int(11) NOT NULL COMMENT '类型',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统设置表';

-- ----------------------------
-- Records of we_config
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_corp_account
-- ----------------------------
DROP TABLE IF EXISTS `we_corp_account`;
CREATE TABLE `we_corp_account` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `company_name` varchar(100) DEFAULT NULL COMMENT '企业名称',
  `corp_id` varchar(64) DEFAULT NULL COMMENT '企业ID',
  `corp_secret` varchar(64) DEFAULT NULL COMMENT '应用的密钥凭证',
  `contact_secret` varchar(64) DEFAULT NULL COMMENT '外部联系人密钥',
  `wx_qr_login_redirect_uri` varchar(64) DEFAULT NULL COMMENT '企业微信扫码登陆系统回调地址',
  `chat_secret` varchar(64) DEFAULT NULL COMMENT '会话存档密钥',
  `agent_id` varchar(64) DEFAULT NULL COMMENT '应用id',
  `agent_secret` varchar(64) DEFAULT NULL COMMENT '应用密钥',
  `del_flag` tinyint(1) DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `customer_churn_notice_switch` char(1) DEFAULT '0' COMMENT '客户流失通知开关 0:关闭 1:开启',
  `back_off_url` varchar(255) DEFAULT NULL COMMENT '回调url',
  `token` varchar(32) DEFAULT NULL COMMENT '回调token',
  `encoding_aes_key` varchar(255) DEFAULT NULL COMMENT '回调EncodingAESKey',
  `finance_private_key` text COMMENT '会话存档私钥',
  `kf_secret` varchar(64) DEFAULT NULL COMMENT '客服密钥',
  `tenant_id` varchar(0) DEFAULT NULL COMMENT '租户id',
  `authorize_url` varchar(255) DEFAULT NULL COMMENT 'JS SDK 身份校验url',
  `sop_tag_redirect_url` varchar(255) DEFAULT NULL COMMENT '群sop和老客标签建群，跳转链接',
  `seas_redirect_url` varchar(255) DEFAULT NULL COMMENT '客户公海，跳转链接',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1430449146875219969 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='企业id相关配置';

-- ----------------------------
-- Records of we_corp_account
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer
-- ----------------------------
DROP TABLE IF EXISTS `we_customer`;
CREATE TABLE `we_customer` (
  `corp_id` varchar(50) DEFAULT NULL COMMENT '企业id',
  `external_userid` varchar(100) NOT NULL COMMENT '外部联系人的userid',
  `name` varchar(100) DEFAULT NULL COMMENT '外部联系人名称',
  `customer_type` tinyint(255) DEFAULT NULL COMMENT '外部联系人的类型，1表示该外部联系人是微信用户，2表示该外部联系人是企业微信用户',
  `avatar` varchar(200) DEFAULT NULL COMMENT '外部联系人头像',
  `gender` tinyint(4) NOT NULL DEFAULT '0' COMMENT '外部联系人性别 0-未知 1-男性 2-女性',
  `unionid` varchar(32) DEFAULT NULL COMMENT '外部联系人在微信开放平台的唯一身份标识,通过此字段企业可将外部联系人与公众号/小程序用户关联起来。',
  `birthday` datetime DEFAULT NULL COMMENT '生日',
  `corp_name` varchar(100) DEFAULT NULL COMMENT '客户企业简称',
  `corp_full_name` varchar(100) DEFAULT NULL COMMENT '客户企业全称',
  `position` varchar(100) DEFAULT NULL COMMENT '客户职位',
  `is_open_chat` tinyint(4) DEFAULT '0' COMMENT '是否开启会话存档 0：关闭 1：开启',
  `create_time` datetime DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `create_by` varchar(20) DEFAULT NULL,
  `update_by` varchar(20) DEFAULT NULL,
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标识 0 有效 1 删除',
  `first_user_id` varchar(32) NOT NULL COMMENT '添加人id',
  `first_add_time` datetime DEFAULT NULL COMMENT '添加时间',
  `track_state` tinyint(1) DEFAULT '1' COMMENT '1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失',
  `track_content` varchar(900) DEFAULT NULL COMMENT '跟进内容',
  `track_time` datetime DEFAULT NULL COMMENT '跟进时间',
  `phone` varchar(20) DEFAULT NULL COMMENT '手机号',
  `email` varchar(100) DEFAULT NULL COMMENT '邮箱',
  `qq` varchar(50) DEFAULT NULL COMMENT 'QQ号',
  `other_descr` varchar(1000) DEFAULT NULL COMMENT '其他描述',
  `address` varchar(300) DEFAULT NULL COMMENT '地址',
  `takeover_user_id` varchar(64) DEFAULT NULL COMMENT '当前接替人',
  `add_method` int(1) DEFAULT NULL,
  `state` varchar(64) DEFAULT NULL,
  `tag_ids` varchar(600) DEFAULT NULL COMMENT '企业标签id，多个逗号隔开',
  PRIMARY KEY (`external_userid`,`first_user_id`) USING BTREE,
  KEY `first_add_time` (`first_add_time`) USING BTREE COMMENT '添加时间索引字段',
  KEY `userId` (`external_userid`) USING BTREE COMMENT '客户id',
  KEY `first_user_id` (`first_user_id`) USING BTREE,
  KEY `check` (`del_flag`,`first_user_id`,`first_add_time`,`gender`,`track_state`,`tag_ids`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='企业微信客户表';

-- ----------------------------
-- Records of we_customer
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_message
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_message`;
CREATE TABLE `we_customer_message` (
  `message_id` bigint(64) NOT NULL AUTO_INCREMENT,
  `original_id` bigint(64) DEFAULT NULL COMMENT '原始数据表id',
  `chat_type` varchar(64) DEFAULT NULL COMMENT '群发任务的类型，默认为single，表示发送给客户，group表示发送给客户群',
  `external_userid` text COMMENT '客户的外部联系人id列表JSON',
  `sender` varchar(255) DEFAULT NULL COMMENT '发送企业群发消息的成员userid，当类型为发送给客户群时必填(和企微客户沟通后确认是群主id)',
  `check_status` varchar(2) DEFAULT NULL COMMENT '消息发送状态 0 未发送  1 已发送',
  `msgid` longtext COMMENT '企业群发消息的id，可用于<a href="https://work.weixin.qq.com/api/doc/90000/90135/92136">获取群发消息发送结果</a>',
  `content` text COMMENT '消息内容',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` int(11) DEFAULT NULL,
  `setting_time` varchar(255) DEFAULT NULL COMMENT '发送时间',
  `expect_send` int(11) DEFAULT '0' COMMENT '预计发送消息数（客户对应多少人 客户群对应多个群）',
  `actual_send` int(11) DEFAULT '0' COMMENT '实际发送消息数（客户对应多少人 客户群对应多个群）',
  `timed_task` int(1) DEFAULT '0' COMMENT '是否定时任务 0 常规 1 定时发送',
  PRIMARY KEY (`message_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1454979621413064705 DEFAULT CHARSET=utf8mb4 COMMENT='群发消息  微信消息表';

-- ----------------------------
-- Records of we_customer_message
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_messageOriginal
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_messageOriginal`;
CREATE TABLE `we_customer_messageOriginal` (
  `message_original_Id` bigint(64) NOT NULL,
  `push_type` varchar(2) DEFAULT NULL COMMENT '群发类型 0 发给客户 1 发给客户群',
  `message_type` varchar(2) DEFAULT NULL COMMENT '0 文本消息  1 图片消息 2 链接消息   3 小程序消息',
  `staff_id` text COMMENT '员工id',
  `tag` varchar(1000) DEFAULT NULL COMMENT '客户标签id列表',
  `group` varchar(1000) DEFAULT NULL COMMENT '群组名称id',
  `department` varchar(255) DEFAULT NULL COMMENT '部门id',
  `push_range` varchar(2) DEFAULT NULL COMMENT '消息范围 0 全部客户  1 指定客户',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` int(1) DEFAULT '0',
  PRIMARY KEY (`message_original_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='群发消息 原始数据信息表';

-- ----------------------------
-- Records of we_customer_messageOriginal
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_messageTimeTask
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_messageTimeTask`;
CREATE TABLE `we_customer_messageTimeTask` (
  `task_id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '任务id',
  `message_id` bigint(64) NOT NULL COMMENT '消息id',
  `message_info` longtext NOT NULL COMMENT '消息原始信息',
  `customers_info` longtext COMMENT '客户信息列表',
  `groups_info` longtext COMMENT '客户群组信息列表',
  `setting_time` bigint(64) NOT NULL COMMENT '定时时间的毫秒数',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `solved` int(255) DEFAULT '0' COMMENT '0 未解决 1 已解决 2:异常',
  `exce_msg` varchar(255) DEFAULT NULL COMMENT '群发异常消息',
  `del_flag` int(2) DEFAULT '0' COMMENT '0:正常;1:删除;',
  PRIMARY KEY (`task_id`)
) ENGINE=InnoDB AUTO_INCREMENT=216 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of we_customer_messageTimeTask
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_messgaeResult
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_messgaeResult`;
CREATE TABLE `we_customer_messgaeResult` (
  `messgae_result_id` bigint(64) NOT NULL,
  `message_id` bigint(64) DEFAULT NULL COMMENT '微信消息表id',
  `external_userid` varchar(100) DEFAULT NULL COMMENT '外部联系人userid',
  `chat_id` varchar(100) DEFAULT NULL COMMENT '外部客户群id',
  `userid` varchar(100) DEFAULT NULL COMMENT '企业服务人员的userid',
  `status` varchar(2) DEFAULT NULL COMMENT '发送状态 0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败',
  `send_time` varchar(40) DEFAULT NULL,
  `external_name` varchar(100) DEFAULT NULL COMMENT '外部联系人名称',
  `user_name` varchar(100) DEFAULT NULL COMMENT '企业服务人员的名称',
  `send_type` varchar(1) DEFAULT NULL COMMENT '0 发给客户 1 发给客户群 2 定时发送',
  `setting_time` varchar(40) DEFAULT NULL COMMENT '定时发送时间',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` int(2) DEFAULT '0',
  `chat_name` varchar(255) DEFAULT NULL COMMENT '外部客户群名称',
  PRIMARY KEY (`messgae_result_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='群发消息  微信消息发送结果';

-- ----------------------------
-- Records of we_customer_messgaeResult
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_seas
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_seas`;
CREATE TABLE `we_customer_seas` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `phone` varchar(20) DEFAULT NULL COMMENT '手机号',
  `customer_name` varchar(255) DEFAULT NULL COMMENT '客户备注名称',
  `tag_names` tinytext COMMENT '标签名，多个使用逗号隔开',
  `tag_ids` tinytext COMMENT '标签id，多个使用逗号隔开',
  `add_user_name` varchar(64) DEFAULT NULL COMMENT '添加人名称',
  `add_user_id` varchar(64) DEFAULT NULL COMMENT '添加人id',
  `table_excel_name` varchar(255) DEFAULT NULL COMMENT '导入的excel的名称',
  `table_excel_id` bigint(64) DEFAULT NULL COMMENT '导入的excel的同一批次下的id',
  `add_state` tinyint(1) unsigned zerofill DEFAULT '0' COMMENT '当前状态:0:待添加;1:已添加;3:待通过',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人id',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人id',
  `del_flag` tinyint(1) unsigned zerofill DEFAULT '0' COMMENT '0:正常;1:删除;',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='客户公海';

-- ----------------------------
-- Records of we_customer_seas
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_seedMessage
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_seedMessage`;
CREATE TABLE `we_customer_seedMessage` (
  `id` bigint(64) DEFAULT NULL,
  `message_id` bigint(64) DEFAULT NULL COMMENT '微信消息表id',
  `content` text COMMENT '消息文本内容，最多4000个字节',
  `media_id` varchar(100) DEFAULT NULL COMMENT '图片消息：图片的media_id，可以通过 <a href="https://work.weixin.qq.com/api/doc/90000/90135/90253">素材管理接口</a>获得',
  `pic_url` varchar(255) DEFAULT NULL COMMENT '图片消息：图片的链接，仅可使用<a href="https://work.weixin.qq.com/api/doc/90000/90135/90256">上传图片接口</a>得到的链接',
  `link_title` varchar(100) DEFAULT NULL COMMENT '链接消息：图文消息标题',
  `link_picurl` varchar(255) DEFAULT NULL COMMENT '链接消息：图文消息封面的url',
  `lin_desc` varchar(1000) DEFAULT NULL COMMENT '链接消息：图文消息的描述，最多512个字节',
  `link_url` varchar(1000) DEFAULT NULL COMMENT '链接消息：图文消息的链接',
  `miniprogram_title` varchar(255) DEFAULT NULL COMMENT '小程序消息标题，最多64个字节',
  `miniprogram_media_id` varchar(100) DEFAULT NULL COMMENT '小程序消息封面的mediaid，封面图建议尺寸为520*416',
  `appid` varchar(100) DEFAULT NULL COMMENT '小程序appid，必须是关联到企业的小程序应用',
  `page` varchar(255) DEFAULT NULL COMMENT '小程序page路径',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(255) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` int(1) DEFAULT '0',
  `seed_message_id` bigint(20) NOT NULL,
  PRIMARY KEY (`seed_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='群发消息  子消息表(包括 文本消息、图片消息、链接消息、小程序消息) ';

-- ----------------------------
-- Records of we_customer_seedMessage
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_customer_trajectory
-- ----------------------------
DROP TABLE IF EXISTS `we_customer_trajectory`;
CREATE TABLE `we_customer_trajectory` (
  `id` bigint(20) NOT NULL COMMENT 'id',
  `trajectory_type` tinyint(4) DEFAULT NULL COMMENT '轨迹类型(1:客户动态;2:员工动态;3:互动动态4:跟进动态)',
  `external_userid` varchar(32) DEFAULT NULL COMMENT '外部联系人id',
  `content` varchar(600) DEFAULT NULL COMMENT '文案内容',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `status` char(1) DEFAULT '0' COMMENT '0:正常;1:完成;2:删除',
  `user_id` varchar(32) DEFAULT NULL COMMENT '员工id',
  `track_state` tinyint(4) DEFAULT NULL COMMENT '1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失',
  `title` varchar(255) DEFAULT NULL COMMENT ' 标题',
  `track_time` datetime DEFAULT NULL COMMENT '跟进时间',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `is_synch` tinyint(1) DEFAULT '0' COMMENT '是否来自同步:1是;0否',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `corp_id` varchar(64) DEFAULT NULL COMMENT '企业id',
  PRIMARY KEY (`id`) USING BTREE COMMENT '主键'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='客户轨迹表';

-- ----------------------------
-- Records of we_customer_trajectory
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_department
-- ----------------------------
DROP TABLE IF EXISTS `we_department`;
CREATE TABLE `we_department` (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) NOT NULL COMMENT '部门名称',
  `parent_id` bigint(20) NOT NULL,
  `create_by` varchar(50) NOT NULL DEFAULT '0' COMMENT '创建人',
  `update_by` varchar(50) DEFAULT '0' COMMENT '修改人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0:正常 1:删除',
  `tenant_id` varchar(64) DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`),
  UNIQUE KEY `unindex_id_del` (`id`,`del_flag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='企业微信组织架构相关';

-- ----------------------------
-- Records of we_department
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_emple_code
-- ----------------------------
DROP TABLE IF EXISTS `we_emple_code`;
CREATE TABLE `we_emple_code` (
  `id` bigint(20) NOT NULL,
  `code_type` tinyint(4) DEFAULT NULL COMMENT '活码类型:1:批量;2:单人;3:多人;',
  `skip_verify` tinyint(4) NOT NULL DEFAULT '1' COMMENT '客户添加时无需经过确认自动成为好友:1:是;0:否',
  `scenario` varchar(300) DEFAULT NULL COMMENT '活动场景',
  `welcome_msg` varchar(60) DEFAULT NULL COMMENT '欢迎语',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `del_flag` tinyint(4) DEFAULT NULL COMMENT '0:正常;1:删除;',
  `config_id` varchar(50) DEFAULT NULL COMMENT '新增联系方式的配置id',
  `qr_code` varchar(100) DEFAULT NULL COMMENT '二维码链接',
  `media_id` bigint(20) DEFAULT NULL COMMENT '素材id',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `scan_times` int(11) NOT NULL DEFAULT '0' COMMENT '该员工活码的扫码次数',
  `is_join_confirm_friends` tinyint(4) DEFAULT '0' COMMENT ' 客户添加时是否需要经过确认自动成为好友  1:是  0:否',
  `state` varchar(30) DEFAULT '' COMMENT '用于区分客户具体是通过哪个「联系我」添加。不能超过30个字符',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='员工活码表';

-- ----------------------------
-- Records of we_emple_code
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_emple_code_tag
-- ----------------------------
DROP TABLE IF EXISTS `we_emple_code_tag`;
CREATE TABLE `we_emple_code_tag` (
  `id` bigint(20) NOT NULL,
  `tag_id` varchar(64) DEFAULT NULL COMMENT '标签id',
  `tag_name` varchar(50) DEFAULT NULL COMMENT '标签名称',
  `emple_code_id` bigint(20) DEFAULT NULL COMMENT '员工活码id',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '0:正常;2:删除;',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='员工活码标签';

-- ----------------------------
-- Records of we_emple_code_tag
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_emple_code_use_scop
-- ----------------------------
DROP TABLE IF EXISTS `we_emple_code_use_scop`;
CREATE TABLE `we_emple_code_use_scop` (
  `id` bigint(20) NOT NULL,
  `emple_code_id` bigint(20) DEFAULT NULL COMMENT '员工活码id',
  `business_id_type` tinyint(4) DEFAULT NULL COMMENT '业务id类型1:组织机构id,2:成员id',
  `business_name` varchar(100) DEFAULT NULL COMMENT '活码下使用人姓名',
  `business_id` varchar(64) DEFAULT NULL COMMENT '活码类型下业务使用人的id',
  `del_flag` tinyint(4) DEFAULT NULL COMMENT '0:正常;2:删除;',
  `party_id` bigint(10) DEFAULT NULL COMMENT '部门id列表，只在多人时有效',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='员工活码使用人';

-- ----------------------------
-- Records of we_emple_code_use_scop
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_flower_customer_rel
-- ----------------------------
DROP TABLE IF EXISTS `we_flower_customer_rel`;
CREATE TABLE `we_flower_customer_rel` (
  `id` bigint(20) NOT NULL,
  `user_id` varchar(32) DEFAULT NULL COMMENT '添加了此外部联系人的企业成员userid',
  `remark` varchar(100) DEFAULT NULL COMMENT '该成员对此外部联系人的备注',
  `description` tinytext COMMENT '该成员对此外部联系人的描述',
  `create_time` datetime DEFAULT NULL COMMENT '该成员添加此外部联系人的时间',
  `remark_corp_name` varchar(100) DEFAULT NULL COMMENT '该成员对此客户备注的企业名称\r\n',
  `remark_mobiles` varchar(255) DEFAULT NULL COMMENT '该成员对此客户备注的手机号码',
  `oper_userid` varchar(32) DEFAULT NULL COMMENT '发起添加的userid，如果成员主动添加，为成员的userid；如果是客户主动添加，则为客户的外部联系人userid；如果是内部成员共享/管理员分配，则为对应的成员/管理员userid',
  `qq` varchar(20) DEFAULT NULL COMMENT '客户QQ',
  `address` varchar(100) DEFAULT NULL COMMENT '客户地址',
  `email` varchar(20) DEFAULT NULL COMMENT '邮件',
  `add_way` varchar(30) DEFAULT NULL COMMENT '该成员添加此客户的来源，',
  `state` varchar(30) DEFAULT NULL COMMENT '企业自定义的state参数，用于区分客户具体是通过哪个「联系我」添加，由企业通过创建「联系我」方式指定',
  `external_userid` varchar(32) DEFAULT NULL COMMENT '客户id',
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1删除）',
  PRIMARY KEY (`id`),
  KEY `idx_uid_eid` (`external_userid`,`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='具有外部联系人功能企业员工也客户的关系表';

-- ----------------------------
-- Records of we_flower_customer_rel
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_flower_customer_tag_rel
-- ----------------------------
DROP TABLE IF EXISTS `we_flower_customer_tag_rel`;
CREATE TABLE `we_flower_customer_tag_rel` (
  `user_id` varchar(32) NOT NULL COMMENT '员工id',
  `external_userid` varchar(100) NOT NULL COMMENT '客户id',
  `tag_id` varchar(32) NOT NULL COMMENT '标签id',
  `is_company_tag` tinyint(1) DEFAULT '1' COMMENT '是否是企业标签:1:是;0:否',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标识 0 有效 1 删除',
  PRIMARY KEY (`user_id`,`external_userid`,`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='客户标签关系表';

-- ----------------------------
-- Records of we_flower_customer_tag_rel
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group
-- ----------------------------
DROP TABLE IF EXISTS `we_group`;
CREATE TABLE `we_group` (
  `chat_id` varchar(32) NOT NULL COMMENT '群聊id',
  `group_name` varchar(200) DEFAULT '群聊' COMMENT '群名',
  `add_time` datetime NOT NULL COMMENT '群创建时间',
  `notice` text COMMENT '群公告',
  `owner` varchar(32) DEFAULT NULL COMMENT '群主userId',
  `admin_user_id` varchar(200) DEFAULT NULL COMMENT '群管理员id',
  `status` tinyint(1) DEFAULT '0' COMMENT '0 - 正常;1 - 跟进人离职;2 - 离职继承中;3 - 离职继承完成',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `create_by` varchar(50) NOT NULL DEFAULT '0' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `allocate_state` tinyint(1) DEFAULT '3' COMMENT '分配状态:0:被接替成功 1:待接替 2:接替失败 3:正常状态 ',
  `update_by` varchar(50) DEFAULT '0' COMMENT '修改人',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 正常 1 删除',
  PRIMARY KEY (`chat_id`),
  UNIQUE KEY `uindex_chatid` (`chat_id`,`del_flag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='企业微信群';

-- ----------------------------
-- Records of we_group
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_code
-- ----------------------------
DROP TABLE IF EXISTS `we_group_code`;
CREATE TABLE `we_group_code` (
  `id` bigint(20) NOT NULL,
  `code_url` varchar(150) NOT NULL COMMENT '二维码链接',
  `avatar_url` varchar(150) DEFAULT NULL COMMENT '二维码中心头像url',
  `activity_name` varchar(60) DEFAULT NULL COMMENT '活码名称',
  `activity_desc` varchar(60) DEFAULT NULL COMMENT '活码描述',
  `total_scan_times` bigint(11) DEFAULT '0' COMMENT '扫码总次数',
  `activity_scene` varchar(60) DEFAULT NULL COMMENT '场景',
  `guide` varchar(60) DEFAULT NULL COMMENT '引导语',
  `show_tip` tinyint(4) DEFAULT NULL COMMENT '是否进群提示:1:是;0:否;',
  `tip_msg` varchar(100) DEFAULT NULL COMMENT '进群提示语',
  `customer_server_qr_code` varchar(150) DEFAULT NULL COMMENT '客服二维码',
  `del_flag` tinyint(4) DEFAULT NULL COMMENT '0:正常;2:删除;',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='客户群活码';

-- ----------------------------
-- Records of we_group_code
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_code_actual
-- ----------------------------
DROP TABLE IF EXISTS `we_group_code_actual`;
CREATE TABLE `we_group_code_actual` (
  `id` bigint(20) NOT NULL,
  `actual_group_qr_code` varchar(150) DEFAULT NULL COMMENT '实际群码',
  `group_name` varchar(100) DEFAULT NULL COMMENT '群名称',
  `effect_time` datetime DEFAULT NULL COMMENT '有效期',
  `scan_code_times_limit` int(11) DEFAULT NULL COMMENT '扫码次数限制',
  `group_code_id` bigint(20) DEFAULT NULL COMMENT '群活码id',
  `chat_id` varchar(32) DEFAULT NULL COMMENT '群聊id',
  `chat_group_name` varchar(20) DEFAULT NULL COMMENT '群聊名称',
  `scan_code_times` int(11) DEFAULT '0' COMMENT '扫码次数',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '0:正常使用;2:删除;',
  `status` tinyint(4) DEFAULT '0' COMMENT '0:使用中',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='实际群码';

-- ----------------------------
-- Records of we_group_code_actual
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_member
-- ----------------------------
DROP TABLE IF EXISTS `we_group_member`;
CREATE TABLE `we_group_member` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` varchar(32) DEFAULT NULL COMMENT '群成员id',
  `chat_id` varchar(32) DEFAULT NULL COMMENT '群id',
  `union_id` varchar(32) DEFAULT NULL COMMENT '外部联系人在微信开放平台的唯一身份标识',
  `join_time` timestamp NULL DEFAULT NULL COMMENT '加群时间',
  `join_scene` tinyint(4) DEFAULT NULL COMMENT '加入方式',
  `type` tinyint(4) DEFAULT NULL COMMENT '成员类型:1 - 企业成员;2 - 外部联系人',
  `group_nick_name` varchar(200) DEFAULT NULL COMMENT '在群里的昵称',
  `name` varchar(200) DEFAULT NULL COMMENT '名字',
  `invitor_user_id` varchar(200) DEFAULT NULL COMMENT '邀请人userId',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `create_by` varchar(50) NOT NULL DEFAULT '0' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `update_by` varchar(50) DEFAULT '0' COMMENT '修改人',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 正常 1 删除',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uindex_chatid_userid` (`chat_id`,`user_id`,`del_flag`)
) ENGINE=InnoDB AUTO_INCREMENT=1430003699749237965 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='企业微信群成员';

-- ----------------------------
-- Records of we_group_member
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_message_attachments
-- ----------------------------
DROP TABLE IF EXISTS `we_group_message_attachments`;
CREATE TABLE `we_group_message_attachments` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `msg_template_id` bigint(64) NOT NULL COMMENT '消息模板id',
  `msg_id` varchar(64) DEFAULT NULL COMMENT '企业群发消息的id',
  `msg_type` varchar(20) NOT NULL COMMENT '消息类型 文本:text 图片:image 图文:link 小程序:miniprogram 视频:video 文件:file ',
  `content` varchar(4000) DEFAULT NULL COMMENT '消息内容',
  `media_id` varchar(2000) DEFAULT NULL COMMENT '媒体id',
  `title` varchar(100) DEFAULT NULL COMMENT '消息标题',
  `description` varchar(512) DEFAULT NULL COMMENT '消息描述',
  `file_url` varchar(500) DEFAULT NULL COMMENT '文件路径',
  `link_url` varchar(500) DEFAULT NULL COMMENT '消息链接',
  `pic_url` varchar(500) DEFAULT NULL COMMENT '消息图片地址',
  `app_id` varchar(64) DEFAULT NULL COMMENT '小程序appid',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `msg_id_index` (`msg_id`,`del_flag`),
  KEY `msg_template_Id_index` (`msg_template_id`)
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb4 COMMENT='群发消息附件表';

-- ----------------------------
-- Records of we_group_message_attachments
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_message_list
-- ----------------------------
DROP TABLE IF EXISTS `we_group_message_list`;
CREATE TABLE `we_group_message_list` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `msg_id` varchar(64) DEFAULT NULL COMMENT '企业群发消息的id',
  `chat_type` varchar(20) NOT NULL DEFAULT 'single' COMMENT '群发任务的类型，默认为single，表示发送给客户，group表示发送给客户群',
  `user_id` varchar(200) DEFAULT NULL COMMENT '群发消息创建者userid',
  `send_time` datetime DEFAULT NULL COMMENT '发送时间',
  `create_type` tinyint(4) DEFAULT NULL COMMENT '群发消息创建来源。0：企业 1：个人',
  `msg_template_id` bigint(64) NOT NULL COMMENT '群发消息模板id',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `msg_id_index` (`msg_id`,`del_flag`),
  KEY `template_id__index` (`msg_template_id`)
) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8mb4 COMMENT='群发消息列表';

-- ----------------------------
-- Records of we_group_message_list
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_message_send_result
-- ----------------------------
DROP TABLE IF EXISTS `we_group_message_send_result`;
CREATE TABLE `we_group_message_send_result` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `msg_template_id` bigint(64) NOT NULL COMMENT '消息模板id',
  `msg_id` varchar(64) DEFAULT NULL COMMENT '企业群发消息的id',
  `user_id` varchar(200) NOT NULL COMMENT '企业服务人员的userid',
  `external_userid` varchar(64) DEFAULT NULL COMMENT '外部联系人userid',
  `chat_id` varchar(64) DEFAULT NULL COMMENT '外部客户群id',
  `status` tinyint(4) DEFAULT '0' COMMENT '发送状态：0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败',
  `send_time` datetime DEFAULT NULL COMMENT '发送时间，发送状态为1时返回',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `msg_id_index` (`msg_id`,`del_flag`),
  KEY `msg_template_id_index` (`msg_template_id`)
) ENGINE=InnoDB AUTO_INCREMENT=12676 DEFAULT CHARSET=utf8mb4 COMMENT='群发消息成员执行结果表';

-- ----------------------------
-- Records of we_group_message_send_result
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_message_task
-- ----------------------------
DROP TABLE IF EXISTS `we_group_message_task`;
CREATE TABLE `we_group_message_task` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `msg_template_id` bigint(64) NOT NULL COMMENT '消息模板id',
  `msg_id` varchar(64) DEFAULT NULL COMMENT '企业群发消息的id',
  `user_id` varchar(200) NOT NULL COMMENT '企业服务人员的userid',
  `status` tinyint(4) DEFAULT '0' COMMENT '发送状态：0-未发送 2-已发送',
  `send_time` datetime DEFAULT NULL COMMENT '发送时间，未发送时不返回',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `msg_id_index` (`msg_id`,`del_flag`),
  KEY `msg_template_id_index` (`msg_template_id`)
) ENGINE=InnoDB AUTO_INCREMENT=199 DEFAULT CHARSET=utf8mb4 COMMENT='群发消息成员发送任务表';

-- ----------------------------
-- Records of we_group_message_task
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_message_template
-- ----------------------------
DROP TABLE IF EXISTS `we_group_message_template`;
CREATE TABLE `we_group_message_template` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `chat_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '群发任务的类，1：表示发送给客户，2：表示发送给客户群',
  `content` varchar(4000) DEFAULT NULL COMMENT '群发内容',
  `send_time` datetime DEFAULT NULL COMMENT '发送时间',
  `filter_condition` varchar(2000) DEFAULT NULL COMMENT '条件筛选',
  `is_task` tinyint(4) DEFAULT '0' COMMENT '是否定时任务 0 立即发送 1 定时发送',
  `status` tinyint(4) DEFAULT '0' COMMENT '是否执行 -1：失败  0：未执行 1：完成 2：取消',
  `business_id` bigint(20) DEFAULT NULL COMMENT '业务id',
  `source` tinyint(4) DEFAULT '0' COMMENT '来源 0 群发 1 其他',
  `refresh_time` datetime DEFAULT NULL COMMENT '刷新时间',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb4 COMMENT='群发消息模板';

-- ----------------------------
-- Records of we_group_message_template
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_sop
-- ----------------------------
DROP TABLE IF EXISTS `we_group_sop`;
CREATE TABLE `we_group_sop` (
  `rule_id` bigint(20) NOT NULL COMMENT '群SOP主键',
  `rule_name` varchar(64) NOT NULL COMMENT '规则名称',
  `title` varchar(64) NOT NULL COMMENT '标题',
  `content` varchar(255) NOT NULL COMMENT '内容',
  `start_time` datetime NOT NULL COMMENT '开始执行时间',
  `end_time` datetime NOT NULL COMMENT '结束时间',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '逻辑删除字段， 0:未删除 1:已删除',
  PRIMARY KEY (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='群SOP规则表';

-- ----------------------------
-- Records of we_group_sop
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_sop_chat
-- ----------------------------
DROP TABLE IF EXISTS `we_group_sop_chat`;
CREATE TABLE `we_group_sop_chat` (
  `rule_id` bigint(20) NOT NULL COMMENT 'SOP id',
  `chat_id` varchar(32) NOT NULL COMMENT '群聊id',
  `is_done` smallint(255) NOT NULL COMMENT '规则是否已发送0：未发送 1：已发送'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='SOP规则 - 群聊 关联表';

-- ----------------------------
-- Records of we_group_sop_chat
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_sop_material
-- ----------------------------
DROP TABLE IF EXISTS `we_group_sop_material`;
CREATE TABLE `we_group_sop_material` (
  `rule_id` bigint(20) NOT NULL COMMENT 'SOP规则id',
  `material_id` bigint(20) NOT NULL COMMENT '素材id'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='群SOP规则 - 素材关联表';

-- ----------------------------
-- Records of we_group_sop_material
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_sop_pic
-- ----------------------------
DROP TABLE IF EXISTS `we_group_sop_pic`;
CREATE TABLE `we_group_sop_pic` (
  `rule_id` bigint(20) NOT NULL COMMENT '群SOP规则ID',
  `pic_url` varchar(150) NOT NULL COMMENT '图片URL'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='群SOP规则图片';

-- ----------------------------
-- Records of we_group_sop_pic
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_statistic
-- ----------------------------
DROP TABLE IF EXISTS `we_group_statistic`;
CREATE TABLE `we_group_statistic` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `chat_id` varchar(128) DEFAULT NULL COMMENT '群ID',
  `stat_time` datetime NOT NULL COMMENT '数据日期',
  `new_chat_cnt` int(10) DEFAULT NULL COMMENT '新增客户群数量',
  `chat_total` int(10) DEFAULT NULL COMMENT '截至当天客户群总数量',
  `chat_has_msg` int(10) DEFAULT NULL COMMENT '截至当天有发过消息的客户群数量',
  `new_member_cnt` int(10) DEFAULT NULL COMMENT '客户群新增群人数',
  `member_total` int(10) DEFAULT NULL COMMENT '截至当天客户群总人数',
  `member_has_msg` int(10) DEFAULT NULL COMMENT '截至当天有发过消息的群成员数',
  `msg_total` int(10) DEFAULT NULL COMMENT '截至当天客户群消息总数',
  PRIMARY KEY (`id`),
  KEY `stat_time_index` (`stat_time`,`chat_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1482774660968873990 DEFAULT CHARSET=utf8 COMMENT='群聊数据统计数据\r\n';

-- ----------------------------
-- Records of we_group_statistic
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_group_tag_rel
-- ----------------------------
DROP TABLE IF EXISTS `we_group_tag_rel`;
CREATE TABLE `we_group_tag_rel` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `chat_id` varchar(32) DEFAULT NULL COMMENT '群id',
  `tag_id` varchar(64) DEFAULT NULL COMMENT '标签id',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `corp_id` varchar(64) DEFAULT NULL COMMENT '企业id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='群标签关系';

-- ----------------------------
-- Records of we_group_tag_rel
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_keyword_group
-- ----------------------------
DROP TABLE IF EXISTS `we_keyword_group`;
CREATE TABLE `we_keyword_group` (
  `task_id` bigint(20) NOT NULL COMMENT '关键词拉群任务主键',
  `task_name` varchar(100) NOT NULL COMMENT '任务名称',
  `group_code_id` bigint(20) NOT NULL COMMENT '群活码id',
  `welcome_msg` varchar(255) NOT NULL COMMENT '加群欢迎语',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) DEFAULT '' COMMENT '备注',
  `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记 0 未删除 1已删除',
  `keywords` varchar(255) NOT NULL COMMENT '关键词，以逗号分隔',
  PRIMARY KEY (`task_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='关键词拉群任务表';

-- ----------------------------
-- Records of we_keyword_group
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_material
-- ----------------------------
DROP TABLE IF EXISTS `we_material`;
CREATE TABLE `we_material` (
  `id` bigint(100) NOT NULL COMMENT '主键id',
  `category_id` bigint(100) DEFAULT NULL COMMENT '分类id',
  `material_url` varchar(255) DEFAULT NULL COMMENT '本地资源文件地址',
  `content` text COMMENT '文本内容、图片文案',
  `material_name` varchar(255) DEFAULT NULL COMMENT '图片名称',
  `digest` varchar(255) DEFAULT NULL COMMENT '摘要',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `cover_url` varchar(255) DEFAULT NULL COMMENT '封面本地资源文件',
  `del_flag` int(1) DEFAULT '0' COMMENT '0 未删除 1 已删除',
  `audio_time` varchar(10) DEFAULT '0' COMMENT '音频时长',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of we_material
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_message_push
-- ----------------------------
DROP TABLE IF EXISTS `we_message_push`;
CREATE TABLE `we_message_push` (
  `message_push_id` bigint(20) NOT NULL COMMENT '主键id',
  `push_type` int(1) DEFAULT '0' COMMENT '群发类型 0 发给客户 1 发给客户群',
  `message_type` varchar(2) DEFAULT NULL COMMENT '消息类型 0 文本消息  1 图片消息 2 语音消息  3 视频消息    4 文件消息 5 文本卡片消息 6 图文消息\r\n7 图文消息（mpnews） 8 markdown消息 9 小程序通知消息 10 任务卡片消息',
  `to_user` varchar(1000) DEFAULT NULL COMMENT '指定接收消息的成员',
  `to_party` varchar(255) DEFAULT NULL COMMENT '指定接收消息的部门',
  `to_tag` varchar(255) DEFAULT NULL COMMENT '指定接收消息的标签',
  `message_json` text COMMENT '消息体',
  `push_range` varchar(1) DEFAULT NULL COMMENT '消息范围 0 全部客户  1 指定客户',
  `create_by` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `update_by` varchar(64) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `del_flag` int(1) DEFAULT NULL COMMENT '0 未删除 1 已删除',
  `invaliduser` varchar(255) DEFAULT NULL COMMENT '无效用户',
  `invalidparty` varchar(255) DEFAULT NULL COMMENT '无效单位',
  `invalidtag` varchar(255) DEFAULT NULL COMMENT '无效标签',
  `chat_id` text COMMENT '群聊id',
  PRIMARY KEY (`message_push_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='消息发送的表';

-- ----------------------------
-- Records of we_message_push
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_moments
-- ----------------------------
DROP TABLE IF EXISTS `we_moments`;
CREATE TABLE `we_moments` (
  `scope_type` tinyint(1) DEFAULT '1' COMMENT '可见类型:1:全部;2:部分;',
  `moment_id` varchar(64) NOT NULL COMMENT '朋友圈id',
  `content_type` varchar(10) DEFAULT NULL COMMENT '内容类型',
  `type` tinyint(1) DEFAULT NULL COMMENT '朋友圈类型:1:企业动态;2:个人动态',
  `customer_tag` text COMMENT '客户标签，多个使用逗号隔开',
  `creator` varchar(255) DEFAULT NULL COMMENT '创建人',
  `add_user` text COMMENT '添加人,多个使用逗号隔开',
  `no_add_user` text COMMENT '未发送员工，使用逗号隔开',
  `content` varchar(4000) DEFAULT NULL COMMENT '朋友圈部分内容',
  `other_content` text COMMENT '附件',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(64) DEFAULT NULL COMMENT '修改人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `push_time` datetime DEFAULT NULL COMMENT '发布时间',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(1) unsigned zerofill DEFAULT '0' COMMENT '删除标识 0:正常 1:删除',
  `is_lw_push` tinyint(1) DEFAULT '0' COMMENT '是否是在lw平台发布的:1:是;0:否;',
  PRIMARY KEY (`moment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='朋友圈';

-- ----------------------------
-- Records of we_moments
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_moments_interacte
-- ----------------------------
DROP TABLE IF EXISTS `we_moments_interacte`;
CREATE TABLE `we_moments_interacte` (
  `interacte_user_id` varchar(255) NOT NULL COMMENT '互动人员名称id',
  `interacte_type` tinyint(1) NOT NULL COMMENT '互动人员类型:0:评论；1:点赞',
  `moment_id` varchar(64) NOT NULL COMMENT '朋友圈id',
  `interacte_user_type` tinyint(1) DEFAULT NULL COMMENT '互动人员类型:0:员工；1:客户',
  `interacte_time` datetime DEFAULT NULL COMMENT '互动时间',
  PRIMARY KEY (`interacte_user_id`,`moment_id`,`interacte_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='朋友圈互动列表';

-- ----------------------------
-- Records of we_moments_interacte
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_msg_tlp
-- ----------------------------
DROP TABLE IF EXISTS `we_msg_tlp`;
CREATE TABLE `we_msg_tlp` (
  `id` bigint(20) NOT NULL,
  `welcome_msg` varchar(255) DEFAULT NULL COMMENT '欢迎语',
  `pic_url` text COMMENT '图片url,多个图片url使用逗号隔开',
  `applet` text COMMENT '小程序',
  `image_text` text COMMENT '图文',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '0:正常;2:删除;',
  `user_ids` text COMMENT '使用员工名称，用逗号隔开',
  `user_names` text COMMENT '使用员工名称，逗号隔开',
  `welcome_msg_tpl_type` tinyint(4) DEFAULT NULL COMMENT '欢迎语模板类型:1:活码欢迎语;2:员工欢迎语;3:入群欢迎语',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `template_id` varchar(64) DEFAULT NULL COMMENT '模版id',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='欢迎语模板表';

-- ----------------------------
-- Records of we_msg_tlp
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_page_statistics
-- ----------------------------
DROP TABLE IF EXISTS `we_page_statistics`;
CREATE TABLE `we_page_statistics` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `new_contact_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '新增客户数',
  `new_chat_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '新增客群数',
  `new_member_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '群新增人数',
  `negative_feedback_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '流失客户数',
  `refresh_time` datetime DEFAULT NULL COMMENT '统计时间',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=latin1 COMMENT='首页数据统计表';

-- ----------------------------
-- Records of we_page_statistics
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_poster
-- ----------------------------
DROP TABLE IF EXISTS `we_poster`;
CREATE TABLE `we_poster` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `title` varchar(30) DEFAULT NULL COMMENT '图片标题',
  `background_img_path` varchar(255) DEFAULT NULL COMMENT '背景图层图片地址',
  `sample_img_path` varchar(255) DEFAULT NULL COMMENT '示例图',
  `type` bigint(255) DEFAULT NULL COMMENT '类型 1 通用海报',
  `width` int(255) DEFAULT NULL COMMENT '背景图片宽',
  `height` int(11) DEFAULT NULL COMMENT '背景图片高',
  `media_type` varchar(255) DEFAULT NULL,
  `category_id` bigint(20) DEFAULT NULL COMMENT '分类id',
  `other_field` text COMMENT '拓展字段',
  `status` tinyint(4) DEFAULT '0' COMMENT '状态 0 启用 1 不启用',
  `create_by` varchar(50) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL,
  `update_by` varchar(50) DEFAULT NULL,
  `update_time` timestamp NULL DEFAULT NULL,
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '0 正常 1 删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COMMENT='海报';

-- ----------------------------
-- Records of we_poster
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_poster_font
-- ----------------------------
DROP TABLE IF EXISTS `we_poster_font`;
CREATE TABLE `we_poster_font` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `font_name` varchar(20) DEFAULT NULL COMMENT '字体名称',
  `font_url` varchar(255) DEFAULT NULL COMMENT '字体网络地址',
  `order` tinyint(255) DEFAULT NULL COMMENT '排序',
  `del_flag` tinyint(4) DEFAULT '0',
  `create_by` varchar(50) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL,
  `update_by` varchar(50) DEFAULT NULL,
  `update_time` timestamp NULL DEFAULT NULL,
  `media_type` int(11) DEFAULT NULL,
  `category_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of we_poster_font
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_poster_subassembly
-- ----------------------------
DROP TABLE IF EXISTS `we_poster_subassembly`;
CREATE TABLE `we_poster_subassembly` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `del_flag` tinyint(4) DEFAULT '0',
  `create_by` varchar(50) DEFAULT NULL,
  `create_time` timestamp NULL DEFAULT NULL,
  `update_by` varchar(50) DEFAULT NULL,
  `update_time` timestamp NULL DEFAULT NULL,
  `poster_id` bigint(20) DEFAULT NULL COMMENT '海报id',
  `left` int(255) DEFAULT NULL,
  `top` int(255) DEFAULT NULL,
  `width` int(11) DEFAULT NULL COMMENT '宽',
  `height` int(11) DEFAULT NULL COMMENT '高',
  `type` int(255) DEFAULT NULL COMMENT '1 文本 2 图片 3 二维码',
  `font_size` int(11) DEFAULT NULL COMMENT '字体大小',
  `font_color` varchar(10) DEFAULT NULL COMMENT '字体颜色',
  `img_path` varchar(255) DEFAULT NULL COMMENT '图片地址',
  `font_id` bigint(20) DEFAULT NULL COMMENT '字体id',
  `font_text_align` int(255) DEFAULT NULL COMMENT '水平对齐',
  `content` varchar(255) DEFAULT NULL COMMENT '内容',
  `vertical_type` tinyint(255) DEFAULT NULL COMMENT '垂直对齐方式',
  `word_space` int(255) DEFAULT NULL COMMENT '字间距',
  `line_space` int(255) DEFAULT NULL COMMENT '行间距',
  `alpha` int(255) DEFAULT NULL COMMENT '透明度[0,255]',
  `rotate` int(255) DEFAULT NULL COMMENT '旋转角度（顺时针）',
  `font_style` tinyint(255) DEFAULT NULL COMMENT '字体类型 0 通常 1 粗体 2 斜体',
  `order` int(255) DEFAULT NULL COMMENT '排序 顺序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1473541231983333381 DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of we_poster_subassembly
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_pres_tag_group
-- ----------------------------
DROP TABLE IF EXISTS `we_pres_tag_group`;
CREATE TABLE `we_pres_tag_group` (
  `task_id` bigint(20) NOT NULL COMMENT '老客户标签建群任务id',
  `task_name` varchar(100) NOT NULL COMMENT '任务名称',
  `send_type` tinyint(1) DEFAULT '0' COMMENT '发送方式 0: 企业群发 1：个人群发',
  `create_by` varchar(100) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(100) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `group_code_id` bigint(11) NOT NULL COMMENT '群活码id',
  `send_scope` tinyint(1) NOT NULL DEFAULT '0' COMMENT '发送范围 0: 全部客户 1：部分客户',
  `send_gender` tinyint(1) unsigned zerofill NOT NULL DEFAULT '0' COMMENT '发送性别 0: 全部 1： 男 2： 女 3：未知',
  `cus_begin_time` datetime DEFAULT NULL COMMENT '目标客户被添加起始时间',
  `cus_end_time` datetime DEFAULT NULL COMMENT '目标客户被添加结束时间',
  `welcome_msg` varchar(255) NOT NULL COMMENT '加群引导语',
  `message_template_id` bigint(20) DEFAULT NULL COMMENT '群发消息的id',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '逻辑删除字段， 0:未删除 1:已删除',
  PRIMARY KEY (`task_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='老客户标签建群';

-- ----------------------------
-- Records of we_pres_tag_group
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_pres_tag_group_scope
-- ----------------------------
DROP TABLE IF EXISTS `we_pres_tag_group_scope`;
CREATE TABLE `we_pres_tag_group_scope` (
  `task_id` bigint(20) NOT NULL COMMENT '老客户标签建群任务id',
  `we_user_id` varchar(64) NOT NULL COMMENT '员工id',
  `create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标识 0 有效 1 删除'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='老客标签建群使用范围表';

-- ----------------------------
-- Records of we_pres_tag_group_scope
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_pres_tag_group_stat
-- ----------------------------
DROP TABLE IF EXISTS `we_pres_tag_group_stat`;
CREATE TABLE `we_pres_tag_group_stat` (
  `task_id` bigint(20) NOT NULL COMMENT '老客标签建群任务id',
  `external_userid` varchar(255) NOT NULL COMMENT '客户id',
  `user_id` varchar(32) DEFAULT NULL COMMENT '跟进者id',
  `sent` tinyint(4) DEFAULT '0' COMMENT '是否送达',
  `create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标识 0 有效 1 删除'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='老客标签建群客户统计表';

-- ----------------------------
-- Records of we_pres_tag_group_stat
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_pres_tag_group_tag
-- ----------------------------
DROP TABLE IF EXISTS `we_pres_tag_group_tag`;
CREATE TABLE `we_pres_tag_group_tag` (
  `task_id` bigint(20) NOT NULL COMMENT '老客户标签建群任务id',
  `tag_id` varchar(64) NOT NULL COMMENT '标签id',
  `create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标识 0 有效 1 删除'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='老客标签建群标签关联表';

-- ----------------------------
-- Records of we_pres_tag_group_tag
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_qr_attachments
-- ----------------------------
DROP TABLE IF EXISTS `we_qr_attachments`;
CREATE TABLE `we_qr_attachments` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `qr_id` bigint(64) NOT NULL COMMENT '活码id',
  `msg_type` varchar(20) NOT NULL COMMENT '消息类型 文本:text 图片:image 图文:link 小程序:miniprogram 视频:video 文件:file ',
  `content` varchar(4000) DEFAULT NULL COMMENT '消息内容',
  `media_id` varchar(2000) DEFAULT NULL COMMENT '媒体id',
  `title` varchar(100) DEFAULT NULL COMMENT '消息标题',
  `description` varchar(512) DEFAULT NULL COMMENT '消息描述',
  `file_url` varchar(500) DEFAULT NULL COMMENT '文件路径',
  `link_url` varchar(500) DEFAULT NULL COMMENT '消息链接',
  `pic_url` varchar(500) DEFAULT NULL COMMENT '消息图片地址',
  `app_id` varchar(64) DEFAULT NULL COMMENT '小程序appid',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `qr_id_IDX` (`qr_id`,`del_flag`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8mb4 COMMENT='活码附件表';

-- ----------------------------
-- Records of we_qr_attachments
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_qr_code
-- ----------------------------
DROP TABLE IF EXISTS `we_qr_code`;
CREATE TABLE `we_qr_code` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(100) NOT NULL DEFAULT 'single' COMMENT '活码名称',
  `group_id` bigint(64) DEFAULT NULL COMMENT '活码分组id',
  `auto_add` tinyint(4) DEFAULT '0' COMMENT '添加是否无需验证 0：否 1：是',
  `type` tinyint(4) DEFAULT '0' COMMENT '活码类型 1：单人 2：多人',
  `rule_type` tinyint(4) DEFAULT '0' COMMENT '排期类型 1：全天 2：自定义',
  `state` varchar(50) DEFAULT '0' COMMENT '添加渠道',
  `scan_num` int(11) DEFAULT '0' COMMENT '扫码次数',
  `config_id` varchar(200) DEFAULT '0' COMMENT '二维码配置id',
  `qr_code` varchar(200) DEFAULT '0' COMMENT '二维码地址',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COMMENT='活码信息表';

-- ----------------------------
-- Records of we_qr_code
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_qr_scope
-- ----------------------------
DROP TABLE IF EXISTS `we_qr_scope`;
CREATE TABLE `we_qr_scope` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `qr_id` bigint(64) NOT NULL COMMENT '活码id',
  `scope_id` varchar(64) NOT NULL COMMENT '排期分组id',
  `type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息类型 0 默认排期 1 自定义排期',
  `scope_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '范围类型 1-员工 2-部门',
  `party` varchar(50) DEFAULT NULL COMMENT '部门id',
  `user_id` varchar(80) DEFAULT NULL COMMENT '员工id',
  `work_cycle` varchar(100) DEFAULT NULL COMMENT '周期时间',
  `begin_time` varchar(50) DEFAULT NULL COMMENT '开始时间',
  `end_time` varchar(50) DEFAULT NULL COMMENT '结束时间',
  `status` tinyint(4) DEFAULT '0' COMMENT '启用状态 0 未启用 1 启用',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `qr_id_IDX` (`qr_id`,`del_flag`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8mb4 COMMENT='活码使用范围表';

-- ----------------------------
-- Records of we_qr_scope
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_qr_tag_rel
-- ----------------------------
DROP TABLE IF EXISTS `we_qr_tag_rel`;
CREATE TABLE `we_qr_tag_rel` (
  `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `qr_id` bigint(64) NOT NULL COMMENT '活码id',
  `tag_id` varchar(64) DEFAULT NULL COMMENT '标签id',
  `create_by` varchar(64) NOT NULL DEFAULT '0' COMMENT '创建人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT '0' COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识 0 有效 1删除',
  PRIMARY KEY (`id`),
  KEY `qr_id_IDX` (`qr_id`,`del_flag`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COMMENT='活码标签关联表';

-- ----------------------------
-- Records of we_qr_tag_rel
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_red_envelopes
-- ----------------------------
DROP TABLE IF EXISTS `we_red_envelopes`;
CREATE TABLE `we_red_envelopes` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `money` decimal(10,0) DEFAULT NULL COMMENT '金额',
  `scene_type` tinyint(4) DEFAULT NULL COMMENT '1:客户;2:客群;3:客户与客群',
  `name` varchar(100) DEFAULT NULL COMMENT '红包名称',
  `status` tinyint(1) DEFAULT NULL COMMENT '0:启用;1:停用',
  `send_times` int(11) DEFAULT '0' COMMENT '发送次数',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(60) DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(60) DEFAULT NULL COMMENT '更新人',
  `del_flag` tinyint(1) DEFAULT '0' COMMENT '0:正常;1:删除;',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='红包';

-- ----------------------------
-- Records of we_red_envelopes
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_red_envelopes_limit
-- ----------------------------
DROP TABLE IF EXISTS `we_red_envelopes_limit`;
CREATE TABLE `we_red_envelopes_limit` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `single_day_pay` decimal(10,0) DEFAULT NULL COMMENT '单日付款总额',
  `single_customer_receive_num` int(11) DEFAULT NULL COMMENT '单日客户收红包次数',
  `single_customer_receive_money` decimal(10,0) DEFAULT NULL COMMENT '单日每客户收红包总额',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(60) DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(60) DEFAULT NULL COMMENT '更新人',
  `del_flag` tinyint(1) DEFAULT NULL COMMENT '0:正常;1:删除;',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='红包限制';

-- ----------------------------
-- Records of we_red_envelopes_limit
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_red_envelopes_record
-- ----------------------------
DROP TABLE IF EXISTS `we_red_envelopes_record`;
CREATE TABLE `we_red_envelopes_record` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `user_id` varchar(64) DEFAULT NULL COMMENT '员工id',
  `external_userid` varchar(100) DEFAULT NULL COMMENT '客户id',
  `group_id` varchar(100) DEFAULT NULL COMMENT '群id',
  `red_envelope_num` int(1) DEFAULT NULL COMMENT '红包个数',
  `receive_type` tinyint(1) DEFAULT NULL COMMENT '红包领取人:1:好友客户;2:群成员',
  `red_envelope_money` decimal(1,0) DEFAULT NULL COMMENT '红包金额',
  `red_envelope_type` tinyint(4) DEFAULT '1' COMMENT '1: 普通红包2:拼手气红包',
  `money` decimal(10,0) DEFAULT NULL COMMENT '红包金额',
  `send_state` tinyint(4) DEFAULT NULL COMMENT '发送状态:1:待领取;2:已领取;3:发放失败;4:退款中;5:已退款',
  `order_no` varchar(100) DEFAULT NULL COMMENT '交易订单号',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(60) DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(60) DEFAULT NULL COMMENT '更新人',
  `del_flag` tinyint(1) DEFAULT NULL COMMENT '0:正常;1:删除;',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='客户红包发放记录';

-- ----------------------------
-- Records of we_red_envelopes_record
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_sensitive
-- ----------------------------
DROP TABLE IF EXISTS `we_sensitive`;
CREATE TABLE `we_sensitive` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `strategy_name` varchar(100) NOT NULL COMMENT '策略名称',
  `pattern_words` text NOT NULL COMMENT '匹配词',
  `audit_user_id` varchar(64) NOT NULL COMMENT '审计人id',
  `audit_user_name` varchar(30) NOT NULL COMMENT '审计人',
  `alert_flag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '消息通知,1 开启 0 关闭',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识，1 已删除 0 未删除',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='敏感词设置表';

-- ----------------------------
-- Records of we_sensitive
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_sensitive_act
-- ----------------------------
DROP TABLE IF EXISTS `we_sensitive_act`;
CREATE TABLE `we_sensitive_act` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `act_name` varchar(100) NOT NULL COMMENT '敏感行为名称',
  `order_num` int(11) NOT NULL DEFAULT '0' COMMENT '排序字段',
  `enable_flag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '记录敏感行为,1 开启 0 关闭',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识，1 已删除 0 未删除',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='敏感行为表';

-- ----------------------------
-- Records of we_sensitive_act
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_sensitive_act_hit
-- ----------------------------
DROP TABLE IF EXISTS `we_sensitive_act_hit`;
CREATE TABLE `we_sensitive_act_hit` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `operator_id` varchar(64) NOT NULL COMMENT '敏感行为操作人id',
  `operator` varchar(64) NOT NULL COMMENT '敏感行为操作人',
  `operate_target_id` varchar(64) NOT NULL COMMENT '敏感行为操作对象id',
  `operate_target` varchar(64) NOT NULL COMMENT '敏感行为操作对象',
  `sensitive_act_id` bigint(20) NOT NULL COMMENT '敏感行为id',
  `sensitive_act` varchar(100) NOT NULL COMMENT '敏感行为名称',
  `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识，1 已删除 0 未删除',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='敏感行为记录表';

-- ----------------------------
-- Records of we_sensitive_act_hit
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_sensitive_audit_scope
-- ----------------------------
DROP TABLE IF EXISTS `we_sensitive_audit_scope`;
CREATE TABLE `we_sensitive_audit_scope` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `sensitive_id` bigint(20) NOT NULL COMMENT '敏感词表主键',
  `scope_type` tinyint(4) NOT NULL COMMENT '审计范围类型, 1 组织机构 2 成员',
  `audit_scope_id` varchar(64) NOT NULL COMMENT '审计对象id',
  `audit_scope_name` varchar(64) NOT NULL COMMENT '审计对象名称',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='敏感词审计范围';

-- ----------------------------
-- Records of we_sensitive_audit_scope
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_synch_record
-- ----------------------------
DROP TABLE IF EXISTS `we_synch_record`;
CREATE TABLE `we_synch_record` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `synch_type` tinyint(1) DEFAULT NULL COMMENT '同步类型:1:客户模块同步',
  `synch_time` datetime DEFAULT NULL COMMENT '同步时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='同步记录表';

-- ----------------------------
-- Records of we_synch_record
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_tag
-- ----------------------------
DROP TABLE IF EXISTS `we_tag`;
CREATE TABLE `we_tag` (
  `group_id` varchar(64) DEFAULT NULL COMMENT '标签组id,当标签为个人标签时，无需该值',
  `name` varchar(50) DEFAULT NULL COMMENT '标签名',
  `create_time` datetime DEFAULT NULL,
  `status` char(1) DEFAULT '0' COMMENT '状态（0正常 1删除）',
  `tag_type` tinyint(4) DEFAULT '1' COMMENT '1:客户企业标签;2:群标签;3:客户个人标签',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '0:正常;1:删除;',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `owner` varchar(64) DEFAULT NULL COMMENT '标签所属人',
  `tag_id` varchar(64) NOT NULL COMMENT '微信端返回的id',
  PRIMARY KEY (`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='企业微信标签';

-- ----------------------------
-- Records of we_tag
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_tag_group
-- ----------------------------
DROP TABLE IF EXISTS `we_tag_group`;
CREATE TABLE `we_tag_group` (
  `group_id` varchar(64) NOT NULL,
  `gourp_name` varchar(50) DEFAULT NULL,
  `group_tag_type` tinyint(4) DEFAULT '1' COMMENT '标签分组类型(1:客户企业标签;2:群标签;3:客户个人标签)',
  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '0:正常;1:删除;',
  `status` char(1) DEFAULT '0' COMMENT '帐号状态（0正常 2删除）',
  `owner` varchar(64) DEFAULT 'admin' COMMENT '标签所属人',
  PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='标签组';

-- ----------------------------
-- Records of we_tag_group
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_task_fission
-- ----------------------------
DROP TABLE IF EXISTS `we_task_fission`;
CREATE TABLE `we_task_fission` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `fission_type` int(11) NOT NULL DEFAULT '1' COMMENT '活动类型，1 任务宝 2 群裂变',
  `task_name` varchar(100) NOT NULL DEFAULT '' COMMENT '任务活动名称',
  `fiss_info` varchar(255) DEFAULT NULL COMMENT '裂变引导语',
  `fiss_num` int(11) NOT NULL DEFAULT '1' COMMENT '裂变客户数量',
  `start_time` datetime NOT NULL COMMENT '活动开始时间',
  `over_time` datetime NOT NULL COMMENT '活动结束时间',
  `customer_tag_id` mediumtext NOT NULL COMMENT '客户标签id列表，当为全部时保存为all',
  `customer_tag` mediumtext COMMENT '客户标签名称列表，为all是可为空',
  `posters_id` bigint(20) DEFAULT NULL COMMENT '海报id',
  `posters_url` varchar(300) NOT NULL DEFAULT '' COMMENT '裂变海报路径',
  `fission_target_id` varchar(64) NOT NULL DEFAULT '' COMMENT '任务裂变目标员工/群裂变id',
  `fission_target` varchar(200) NOT NULL DEFAULT '' COMMENT '任务裂变目标员工姓名/群裂变二维码地址',
  `fiss_qrcode` varchar(500) NOT NULL DEFAULT '' COMMENT '任务裂变目标二维码',
  `reward_url` varchar(500) NOT NULL DEFAULT '' COMMENT '兑奖链接',
  `reward_image_url` varchar(500) NOT NULL DEFAULT '' COMMENT '兑奖链接图片',
  `reward_rule` mediumtext COMMENT '兑奖规则',
  `fiss_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '任务裂变活动状态，1 进行中 2 已结束',
  `welcome_msg` mediumtext COMMENT '新客欢迎语',
  `create_by` varchar(100) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(100) DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=161 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='任务宝表';

-- ----------------------------
-- Records of we_task_fission
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_task_fission_complete_record
-- ----------------------------
DROP TABLE IF EXISTS `we_task_fission_complete_record`;
CREATE TABLE `we_task_fission_complete_record` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `task_fission_id` bigint(20) NOT NULL COMMENT '任务裂变表id',
  `fission_record_id` bigint(20) NOT NULL COMMENT '任务裂变记录表id',
  `customer_id` varchar(64) NOT NULL DEFAULT 'NULL' COMMENT '裂变客户id',
  `customer_name` varchar(100) DEFAULT NULL COMMENT '裂变客户姓名',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态 0 有效 1无效',
  `customer_avatar` varchar(256) DEFAULT NULL COMMENT '客户头像',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='裂变任务完成记录';

-- ----------------------------
-- Records of we_task_fission_complete_record
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_task_fission_record
-- ----------------------------
DROP TABLE IF EXISTS `we_task_fission_record`;
CREATE TABLE `we_task_fission_record` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `task_fission_id` bigint(20) NOT NULL COMMENT '任务裂变表id',
  `customer_id` varchar(64) NOT NULL DEFAULT 'NULL' COMMENT '裂变任务客户id',
  `customer_name` varchar(100) DEFAULT NULL COMMENT '裂变任务客户姓名',
  `fiss_num` int(11) NOT NULL DEFAULT '0' COMMENT '裂变客户数量',
  `qr_code` varchar(500) NOT NULL DEFAULT 'NULL' COMMENT '二维码链接',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `complete_time` datetime DEFAULT NULL COMMENT '完成时间',
  `poster` varchar(500) DEFAULT NULL COMMENT '海报链接',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=193 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='裂变任务记录';

-- ----------------------------
-- Records of we_task_fission_record
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_task_fission_reward
-- ----------------------------
DROP TABLE IF EXISTS `we_task_fission_reward`;
CREATE TABLE `we_task_fission_reward` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '活动奖励主键',
  `task_fission_id` bigint(20) NOT NULL COMMENT '任务裂变id',
  `reward_code` varchar(100) NOT NULL DEFAULT 'NULL' COMMENT '兑奖码',
  `reward_code_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '兑奖码状态，0 未使用 1 已使用',
  `reward_user_id` varchar(64) DEFAULT NULL COMMENT '兑奖用户id',
  `reward_user` varchar(100) DEFAULT NULL COMMENT '兑奖人姓名',
  `create_time` datetime DEFAULT NULL COMMENT '兑奖时间',
  `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='任务裂变奖励';

-- ----------------------------
-- Records of we_task_fission_reward
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_task_fission_staff
-- ----------------------------
DROP TABLE IF EXISTS `we_task_fission_staff`;
CREATE TABLE `we_task_fission_staff` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `task_fission_id` bigint(20) NOT NULL COMMENT '任务裂变表id',
  `staff_type` tinyint(1) NOT NULL COMMENT '员工或机构，1 组织机构 2 成员 3 全部',
  `staff_id` varchar(64) DEFAULT NULL COMMENT '员工或组织机构id,为全部时为空',
  `staff_name` varchar(100) DEFAULT NULL COMMENT '员工或组织机构姓名，类型为全部时，为空',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=191 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='裂变任务员工列表';

-- ----------------------------
-- Records of we_task_fission_staff
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_user
-- ----------------------------
DROP TABLE IF EXISTS `we_user`;
CREATE TABLE `we_user` (
  `user_id` varchar(64) NOT NULL,
  `open_user_id` varchar(64) DEFAULT NULL COMMENT '成员的open_userid',
  `head_image_url` varchar(255) DEFAULT NULL COMMENT '头像地址',
  `user_name` varchar(200) DEFAULT NULL COMMENT '用户名称',
  `alias` varchar(100) DEFAULT NULL COMMENT '用户昵称',
  `gender` tinyint(1) DEFAULT '1' COMMENT '性别。1表示男性，2表示女性',
  `mobile` varchar(20) DEFAULT NULL COMMENT '手机号',
  `email` varchar(30) DEFAULT NULL COMMENT '邮箱',
  `wx_account` varchar(32) DEFAULT NULL COMMENT '个人微信号',
  `department` tinytext COMMENT '用户所属部门,使用逗号隔开,字符串格式存储',
  `position` varchar(300) DEFAULT NULL COMMENT '职务',
  `is_leader_in_dept` tinytext COMMENT '1表示为上级,0表示普通成员(非上级)。',
  `join_time` date DEFAULT NULL COMMENT '入职时间',
  `enable` tinyint(4) DEFAULT '1' COMMENT '是否启用(1表示启用成员，0表示禁用成员)',
  `id_card` char(18) DEFAULT NULL COMMENT '身份证号',
  `qq_account` varchar(20) DEFAULT NULL COMMENT 'QQ号',
  `telephone` varchar(32) DEFAULT NULL COMMENT '座机',
  `address` varchar(300) DEFAULT NULL COMMENT '地址',
  `birthday` date DEFAULT NULL COMMENT '生日',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `customer_tags` varchar(255) DEFAULT NULL COMMENT '客户标签,字符串使用逗号隔开',
  `dimission_time` datetime DEFAULT NULL COMMENT '离职时间',
  `is_allocate` tinyint(1) DEFAULT '0' COMMENT '离职是否分配(1:已分配;0:未分配;)',
  `is_activate` tinyint(4) DEFAULT NULL COMMENT '激活状态: 1=已激活，2=已禁用，4=未激活，5=退出企业,6=删除',
  `is_open_chat` tinyint(4) DEFAULT '0' COMMENT '是否开启会话存档 0：关闭 1：开启',
  `create_by` varchar(50) NOT NULL DEFAULT '0' COMMENT '创建人',
  `update_by` varchar(50) DEFAULT '0' COMMENT '修改人',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `is_config_customer_contact` tinyint(1) DEFAULT '0' COMMENT '是否配置客户联系人功能:1:是;0否',
  `tenant_id` varchar(64) DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='通讯录相关客户';

-- ----------------------------
-- Records of we_user
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_user_behavior_data
-- ----------------------------
DROP TABLE IF EXISTS `we_user_behavior_data`;
CREATE TABLE `we_user_behavior_data` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` varchar(128) DEFAULT NULL COMMENT '客户id',
  `stat_time` datetime DEFAULT NULL COMMENT '数据日期，为当日0点的时间戳',
  `new_apply_cnt` int(10) DEFAULT NULL COMMENT '发起申请数',
  `new_contact_cnt` int(10) DEFAULT NULL COMMENT '新增客户数，成员新添加的客户数量',
  `chat_cnt` int(10) DEFAULT NULL COMMENT '聊天总数， 成员有主动发送过消息的单聊总数',
  `message_cnt` int(10) DEFAULT NULL COMMENT '发送消息数，成员在单聊中发送的消息总数',
  `reply_percentage` double DEFAULT NULL COMMENT '已回复聊天占比，浮点型，客户主动发起聊天后，成员在一个自然日内有回复过消息的聊天数/客户主动发起的聊天数比例，不包括群聊，仅在确有聊天时返回',
  `avg_reply_time` int(10) DEFAULT NULL COMMENT '平均首次回复时长',
  `negative_feedback_cnt` int(11) DEFAULT NULL COMMENT '删除/拉黑成员的客户数，即将成员删除或加入黑名单的客户数',
  PRIMARY KEY (`id`),
  KEY `stat_time_index` (`stat_time`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1482774657374355463 DEFAULT CHARSET=utf8 COMMENT='联系客户统计数据 ';

-- ----------------------------
-- Records of we_user_behavior_data
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for we_user_red_envelops_limit
-- ----------------------------
DROP TABLE IF EXISTS `we_user_red_envelops_limit`;
CREATE TABLE `we_user_red_envelops_limit` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `user_id` varchar(0) NOT NULL COMMENT '员工id',
  `single_customer_receive_num` decimal(10,0) DEFAULT NULL COMMENT '单日每员工发红包次数',
  `single_customer_receive_money` decimal(10,0) DEFAULT NULL COMMENT '单日每员工发红包总额',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_by` varchar(60) DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(0) DEFAULT NULL COMMENT '更新人',
  `del_flag` tinyint(4) DEFAULT NULL COMMENT '0:正常;1:删除;',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='员工发送红包限额';

-- ----------------------------
-- Records of we_user_red_envelops_limit
-- ----------------------------
BEGIN;
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
